Schrift
[thread]3660[/thread]

mysql: no connection (Seite 2)



<< |< 1 2 3 4 >| >> 32 Einträge, 4 Seiten
renee
 2006-02-22 23:58
#34023 #34023
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Füge mal am Anfang des Programms ein
Code: (dl )
1
2
use lib qw(
/usr/local/lib/perl5/site_perl/5.8.6/i686-linux/)
ein...
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/
paidopoieo
 2006-02-23 00:18
#34024 #34024
User since
2005-12-02
96 Artikel
BenutzerIn
[default_avatar]
hallo renee,
dankeschoen, die fehlermeldungen werden immer weniger.....

bekomm aber jetzt folgende Fehlermeldung:
Code: (dl )
install_driver(mysql) failed: Can't load '/usr/local/lib/perl5/site_perl/5.8.6/i686-linux/auto/DBD/mysql/mysql.so' for module DBD::mysql


hab nachgesehen, die library ist genau in dem pfad vorhanden....

Hubert
ptk
 2006-02-23 01:30
#34025 #34025
User since
2003-11-28
3645 Artikel
ModeratorIn
[default_avatar]
Du hast anscheinend unterschiedliche Perls. Das eine ist threaded (das erkennt man am Verzeichnis .../i386-linux-thread-multi), das andere unthreaded. Installieren wird immer nur für eine von den beiden Versionen.

Evtl. hast du auch einen schwerwiegenden Konfigurationsfehler in Perl selbst.
paidopoieo
 2006-02-23 01:37
#34026 #34026
User since
2005-12-02
96 Artikel
BenutzerIn
[default_avatar]
puuh, und wie bekomm ich den weg, oder wie finde ich den.....

was soll ich tun....
ptk
 2006-02-23 02:20
#34027 #34027
User since
2003-11-28
3645 Artikel
ModeratorIn
[default_avatar]
Schick mal die Ausgabe von
Code: (dl )
perl -V
paidopoieo
 2006-02-23 02:30
#34028 #34028
User since
2005-12-02
96 Artikel
BenutzerIn
[default_avatar]
hi,
das ist die ausgabe bei perl -V

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[Hubert@ppc7 ~]$ perl -V
Summary of my perl5 (revision 5 version 8 subversion 6) configuration:
Platform:
osname=linux, osvers=2.6.14-1.1656_fc4smp, archname=i686-linux
uname='linux ppc7.bio.ucalgary.ca 2.6.14-1.1656_fc4smp #1 smp thu jan 5 22:24:06 est 2006 i686 i686 i386 gnulinux '
config_args='-ds -e'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-O2',
cppflags='-fno-strict-aliasing -pipe -I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='4.0.2 20051125 (Red Hat 4.0.2-8)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lbind -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
perllibs=-lbind -lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.3.5.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.3.5'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under linux
Compiled at Feb 8 2006 15:05:02
@INC:
/usr/local/lib/perl5/5.8.6/i686-linux
/usr/local/lib/perl5/5.8.6
/usr/local/lib/perl5/site_perl/5.8.6/i686-linux
/usr/local/lib/perl5/site_perl/5.8.6
/usr/local/lib/perl5/site_perl
.
[Hubert@ppc7 ~]$
renee
 2006-02-23 03:51
#34029 #34029
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Verweist Du irgendwo auf /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi?? Eigentlich duerfte die oben genannte Fehlermeldung gar nicht kommen, weil @INC laut perl -V diesen Pfad gar nicht enthaelt...
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/
paidopoieo
 2006-02-23 04:16
#34030 #34030
User since
2005-12-02
96 Artikel
BenutzerIn
[default_avatar]
hallo renee,
nein, eigentlich nicht, aber kannst du mir sagen wie ich das rausfinden kann, ob irgendetwas auf diesen pfad verweist.....

weiters hab ich bei meiner internetrecherche gefunden, falls dieser fehler auftritt, folgendes zu machen:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
 If Perl reports that it cannot find the ../mysql/mysql.so module, the problem is probably that Perl cannot locate the libmysqlclient.so shared library. You should be able to fix this problem by one of the following methods:

Compile the DBD::mysql distribution with perl Makefile.PL -static -config rather than perl Makefile.PL.

Copy libmysqlclient.so to the directory where your other shared libraries are located (probably /usr/lib or /lib).

Modify the -L options used to compile DBD::mysql to reflect the actual location of libmysqlclient.so.

On Linux, you can add the pathname of the directory where libmysqlclient.so is located to the /etc/ld.so.conf file.

Add the pathname of the directory where libmysqlclient.so is located to the LD_RUN_PATH environment variable. Some systems use LD_LIBRARY_PATH instead.

Note that you may also need to modify the -L options if there are other libraries that the linker fails to find. For example, if the linker cannot find libc because it is in /lib and the link command specifies -L/usr/lib, change the -L option to -L/lib or add -L/lib to the existing link command.


den ersten punkt kann ich nicht machen, da ich das modul mit perl -MCPAN -e 'shell' installiert habe...

mit der -L option hab ich nicht rausgefunden, wie das gemeint ist...
im ld.so.conf file hab ich den pfad folgendermassen hinzugefuegt /usr/lib
die classpath variable hab ich auch gesetzt und zwar folgendermassen:
Code: (dl )
export LD_RUN_PATH=$PATH:/usr/lib

ich hoffe das stimmt so.... ;)
renee
 2006-02-23 04:36
#34031 #34031
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Du koenntest versuchen das Modul haendisch zu installieren:

Download bei CPAN
tar -xvf DBD-mysql-xxx.tar.gz
cd DBD-mysql-xxx
perl Makefile.PL -static -config
oeffne das Makefile und schau mal, wo so etwas steht wie gcc ... -L und passe die Option an
make
make test
make install
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/
paidopoieo
 2006-02-23 05:24
#34032 #34032
User since
2005-12-02
96 Artikel
BenutzerIn
[default_avatar]
hi,
ok, wenn ich das modul haendisch installiere, sollte ich jedoch vorher das andere deinstallieren...was ich mit perl -MC....installiert habe....

ich hab mir vorhin dafuer ein skript runtergeladen mit dem das gehen haette sollen, jedoch hab ich bemerkt das es das modul gar nicht wirklich deinstalliert, aber anscheinend gibt es keine andere moeglichkeit.....hier der code zum deinstallieren..
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/local/bin/perl -w

use strict;
use IO::Dir;
use ExtUtils::Packlist;
use ExtUtils::Installed;

sub emptydir($) {
my ($dir) = @_;
my $dh = IO::Dir->new($dir) || return(0);
my @count = $dh->read();
$dh->close();
return(@count == 2 ? 1 : 0);
}

# Find all the installed packages
print("Finding all installed modules...\n");
my $installed = ExtUtils::Installed->new();

foreach my $module (grep(!/^Perl$/, $installed->modules())) {
my $version = $installed->version($module) || "???";
print("Found module $module Version $version\n");
print("Do you want to delete $module? [n] ");
my $r = <STDIN>; chomp($r);
if ($r && $r =~ /^y/i) {
# Remove all the files
foreach my $file (sort($installed->files($module))) {
print("rm $file\n");
unlink($file);
}
my $pf = $installed->packlist($module)->packlist_file();
print("rm $pf\n");
unlink($pf);
foreach my $dir (sort($installed->directory_tree($module))) {
if (emptydir($dir)) {
print("rmdir $dir\n");
rmdir($dir);
}
}
}
}


oder weisst du eine ander moeglichkeit das zu deinstallieren, denn dieses skript funkt nicht wirklich...denk ich mal....

was meinst du mit gcc....-L option, wie anpassen......
<< |< 1 2 3 4 >| >> 32 Einträge, 4 Seiten



View all threads created 2006-02-22 04:04.