I am trying to get DBD::mysql-4.019 working on my MacBook with my own installed Perl 5.12.1, and MySQL installed from an install package downloaded from mysql.org. The mysql installer installs under /usr/local/mysql, so I added /usr/local/mysql/bin to the bash path and installed like so
perl Makefile.PL --mysql_config=/usr/local/mysql/bin/mysql_config
But when I do make test, I get the following error --
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "
+test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00base.t .................. 1/6
# Failed test 'use DBD::mysql;'
# at t/00base.t line 21.
# Tried to use 'DBD::mysql'.
# Error: Can't load '/Users/punkish/Projects/DBD-mysql-4.019/blib
+/arch/auto/DBD/mysql/mysql.bundle' for module DBD::mysql: dlopen(/Use
+ndle, 2): Library not loaded: libmysqlclient.16.dylib
# Referenced from: /Users/punkish/Projects/DBD-mysql-4.019/blib/arch
# Reason: image not found at /usr/local/lib/perl5/5.12.1/darwin-2lev
+el/DynaLoader.pm line 204.
# 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
when small people start casting long shadows, it is time to go to bed