[Catalyst] install_driver(mysql) failed:

Daniel J. Luke dluke at geeklair.net
Sun Apr 1 18:48:28 GMT 2012

On Apr 1, 2012, at 2:30 PM, Robyn Jonahs wrote:
> DBIx::Class::Schema::Loader::make_schema_at(): DBI Connection failed: install_driver(mysql) failed: Can't load '/FOO/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/auto/DBD/mysql/mysql.bundle' for module DBD::mysql: dlopen(/FOO/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/auto/DBD/mysql/mysql.bundle, 1): Library not loaded: libmysqlclient.18.dylib
>   Referenced from: /FOO/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/auto/DBD/mysql/mysql.bundle
>   Reason: image not found at /FOO/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/darwin-2level/DynaLoader.pm line 194.
>  at (eval 429) line 3

This error is saying that darwin's dyld can't find the mysql library (libmysqlclient.18.dylib) when trying to load DBD::mysql.

You can see what libraries the mysql.bundle is linked against by running:

otool -L /FOO/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/auto/DBD/mysql/mysql.bundle

I don't know how you have the mysql libraries installed, but knowing where libmysqlclient.18.dylib is located could help you figure out what is going wrong.

You might be able to fix things just by rebuilding DBD::mysql ...
Daniel J. Luke                                                                   
| *---------------- dluke at geeklair.net ----------------* |                          
| *-------------- http://www.geeklair.net -------------* |                          
|   Opinions expressed are mine and do not necessarily   |                          
|          reflect the opinions of my employer.          |                          

More information about the Catalyst mailing list