I installed MySQL 5.6.10 onto Mac OSX 10.8.2, in /usr/local/mysql-5.6.10-osx10.7-x86_64/. I then tried to run a Perl program that connects to a MySQL database using DBI and DBD::mysql. I got the following errors:
install_driver(mysql) failed: Can't load '/Users/chap/perl5/perlbrew/perls/perl-
5.16.1/lib/site_perl/5.16.1/darwin-2level/auto/DBD/mysql/mysql.bundle'
for module DBD::mysql: dlopen(/Users/chap/perl5/perlbrew/perls/perl-
5.16.1/lib/site_perl/5.16.1/darwin-2level/auto/DBD/mysql/mysql.bundle,
1): Library not loaded: /usr/local/lib/libmysqlclient.18.dylib
Perhaps a required shared library or dll isn't installed where expected
(This worked fine when I had used 'brew' (not related to perlbrew) to install mysql 5.5 into its own directory, /usr/local/Cellar/. Since brew doesn't yet know about 5.6, I installed it manually.)
I'm able to start mysqld and connect successfully from mysql command line. Does this error indicate that there's a problem with Perl's DBD::mysql module? It's up-to-date; maybe it can't talk to MySqL 5.6?
Thanks!