I tried installing Bundle::DBD::mysql via cpan, but got errors about how it 
couldn't find mysql_config, so I downloaded the DBD::mysql package manually and 
used perl Makefile.pl --mysql_config=/usr/local/mysql/bin/mysql_config which is 
where my mysql_config file lives (it's a standard install for 10.7 from oracle)

That installed correctly, but scripts run by apache on the system fail with the 
error:

[Thu Dec 29 15:25:25 2011] [error] [client 192.168.1.114] install_driver(mysql) 
failed: Can't load 
'/Library/Perl/5.12/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle' for 
module DBD::mysql: 
dlopen(/Library/Perl/5.12/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle,
 1): Library not loaded: libmysqlclient.18.dylib

Now the original attempt at installing with cpan did fail on the same library, 
but it's right there:

bruces-Mac-Pro:~ johnson$ cd /usr/local/mysql/lib
bruces-Mac-Pro:lib johnson$ ls -l
total 375848
-rwxr-xr-x   1 root  wheel   3787624 Nov 23 08:07 libmysqlclient.18.dylib
-rw-r--r--   1 root  wheel  10008536 Nov 23 08:07 libmysqlclient.a
lrwxr-xr-x   1 root  wheel        23 Dec 28 16:28 libmysqlclient.dylib -> 
libmysqlclient.18.dylib
lrwxr-xr-x   1 root  wheel        20 Dec 28 16:28 libmysqlclient_r.18.dylib -> 
libmysqlclient.dylib
lrwxr-xr-x   1 root  wheel        16 Dec 28 16:28 libmysqlclient_r.a -> 
libmysqlclient.a
lrwxr-xr-x   1 root  wheel        20 Dec 28 16:28 libmysqlclient_r.dylib -> 
libmysqlclient.dylib
-rw-r--r--   1 root  wheel  93405392 Nov 23 08:04 libmysqld-debug.a
-rw-r--r--   1 root  wheel  85193728 Nov 23 08:07 libmysqld.a
-rw-r--r--   1 root  wheel      8488 Nov 23 08:07 libmysqlservices.a
drwxr-xr-x  14 root  wheel       476 Nov 23 08:09 plugin


Any ideas?


-- 
Bruce Johnson

"Wherever you go, there you are" B. Banzai,  PhD

Reply via email to