Re: problem with install DBD::mysql -> solved
"Jorge Vivaldi Palatresi" <[email protected]>
| Newsgroups | gmane.comp.db.mysql.perl |
|---|---|
| Message-ID | <003a01c4cd68$0664d1e0$0c2b91c1@rc012> |
Hi all, Thank you very to those that answer my question. I tried adding to LD_LIBRARY_PATH the path to mysql libraries but this give another error message # make test ... PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00base...........install_driver(mysql) failed: Can't load '/usr2/iula/vivaldi/DBD-mysql-2.9004/blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: ld.so.1: /usr/local/bin/perl: fatal: relocation error: file /usr2/iula/vivaldi/DBD-mysql-2.9004/blib/arch/auto/DBD/mysql/mysql.so: symbol mysql_get_parameters: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229. at (eval 1) line 3 Compilation failed in require at (eval 1) line 3. Perhaps a required shared library or dll isn't installed where expected ... So, I tried the other option: to link DBD::mysql staticly. This time everything run ok. Thanks again, Jorge Vivaldi ----- Original Message ----- From: "Rudy Lippan" <[email protected]> To: "Jorge Vivaldi Palatresi" <[email protected]> Cc: <[email protected]> Sent: Tuesday, November 16, 2004 5:58 PM Subject: Re: problem with install DBD::mysql > On Tue, 16 Nov 2004, Jorge Vivaldi Palatresi wrote: > > > Hi all, > > > > I am trying to install the Perl module DBD::mysql on a Sun SPARC running > > Solaris 9. I succesfully installed mysql (version 4.0.21), DBI-1.45 but > > failed to install DBD::mysql. As a matter of fact, I run succesfully > > - perl Makefile.PL > > - make > > but failed to "make test". Perl version is 5.8.0 and gcc is version 3.3. > > Mysql seems to run ok. > > It seems that the client library is not loaded but I can't figure out the > > reason. > > Any help is very welcomed. > > Your dynamic linker can't find the object file for clinet library. I don't know > that much about solaris, but there should be something in your system > documentation on how to configure the dynamic linker. The other option is to > link DBD::mysql staticly (which, I am starting to think should be the default). > > > Rudy > > -- MySQL Perl Mailing List For list archives: http://lists.mysql.com/perl To unsubscribe: http://lists.mysql.com/[email protected]