Skip navigation links

MySQL Forums :: Perl :: update DBD::mysql error


Advanced Search

update DBD::mysql error
Posted by: h h ()
Date: June 19, 2013 12:02AM

i upgrade DBD::mysql from 3.0007 to 4.023 ,get an error,anyone know how to solve this problem? thanks a lot

# find /usr -name 'mysql_config'
/usr/lib64/mysql/mysql_config
/usr/local/mysql-5.5.30-linux2.6-x86_64/bin/mysql_config
/usr/local/mysql-5.1.63/bin/mysql_config
/usr/local/mysql-cluster-gpl-7.1.22/bin/mysql_config
/usr/bin/mysql_config
/usr/lib/mysql/mysql_config

i use mysql5.5 so
# perl Makefile.PL --mysql_config=/usr/local/mysql-5.5.30-linux2.6-x86_64/bin/mysql_config

]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00base....................ok 1/6
t/00base....................NOK 2# Failed test 'use DBD::mysql;'
# at t/00base.t line 21.
# Tried to use 'DBD::mysql'.
# Error: Can't load '/root/DBD-mysql-4.023/blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.18: cannot open shared object file: No such file or directory at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/DynaLoader.pm line 230.
# at (eval 7) line 2
# Compilation failed in require at (eval 7) line 2.
# BEGIN failed--compilation aborted at (eval 7) line 2.
FAILED--Further testing stopped: Unable to load DBD::mysql
make: *** [test_dynamic] Error 9

# make install
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Writing /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/DBD/mysql/.packlist
Appending installation info to /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/perllocal.pod
[root@CHS118 DBD-mysql-4.023]# perl -MDBD:mysql
syntax error at - line 0, near "use DBD:"
Execution of - aborted due to compilation errors.

# perl -MDBD::mysql
Can't load '/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.18: cannot open shared object file: No such file or directory at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/DynaLoader.pm line 230.
at - line 0
Compilation failed in require.
BEGIN failed--compilation aborted.

Options: ReplyQuote


Subject Written By Posted
update DBD::mysql error h h 06/19/2013 12:02AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.