MySQL Forums
Forum List  »  Perl

DBD::mysql Fails to Install
Posted by: Ben Armistead
Date: June 15, 2009 02:01PM

I'm running CentOS 5 and trying to get DBI and DBD for mysql set up. I installed the DBI fine with:

perl -MCPAN -e 'install Bundle::DBI'

But when I go to install the DBD with:

perl -MCPAN -e 'install Bundle::DBD::mysql'

I get this error towards the end (when it self tests):

Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00base.t .................. 2/6
# Failed test 'use DBD::mysql;'
# at t/00base.t line 21.
# Tried to use 'DBD::mysql'.
# Error: Can't load '/root/.cpan/build/DBD-mysql-4.011-lO_NvN/blib/arch/auto/DBD/mysql/' for module DBD::mysql: /root/.cpan/build/DBD-mysql-4.011-lO_NvN/blib/arch/auto/DBD/mysql/ undefined symbol: __pure_virtual at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/ 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.
Bailout called. Further testing stopped: Unable to load DBD::mysql
FAILED--Further testing stopped: Unable to load DBD::mysql
make: *** [test_dynamic] Error 255
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports CAPTTOFU/DBD-mysql-4.011.tar.gz
Running make install
make test had returned bad status, won't install without force

Is there something I need to change in a config? (I don't run mysql in the default directory). Any ideas?

Options: ReplyQuote

Written By
DBD::mysql Fails to Install
June 15, 2009 02:01PM

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.