[Catalyst] install_driver(mysql) failed:

Robyn Jonahs learn.catalyst at gmail.com
Sun Apr 1 20:24:27 GMT 2012

Thank you thank you thank you so much. That guided me in the correct

You got me to search for libmysqlclient.18.dylib which led me to


which helped me to understand that I need to get the system to see the
file. It was there on my system in
and also in
which diff said were identical.

Based on the web article, or better the first comment, I figured that I
needed either directory in the path or as the guy recommends, set a
symbolic link. I went with the symbolic link option to make it visible in
which the comment at the link above says is "the standard MAC OS X
dyld-library-path (/usr/lib/)"

ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib

The problem may have been caused by the mysql installation from root and
the perl installation being local? I am not sure or not that interested. I
am just giving thanks and my solution to the list and Daniel for getting me
on the correct path. Seems pretty specific but here it is in case anyone
else needs the info.

On Sun, Apr 1, 2012 at 2:48 PM, Daniel J. Luke <dluke at geeklair.net> wrote:

> 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=
> for module DBD::mysql:
> dlopen(/FOO/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-=
> 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/=
> >   Reason: image not found at
> /FOO/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/darwin-2level/DynaLoader=
> 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/=
> 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
> +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
> | *---------------- dluke at geeklair.net ----------------* |
> | *-------------- http://www.geeklair.net -------------* |
> +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
> |   Opinions expressed are mine and do not necessarily   |
> |          reflect the opinions of my employer.          |
> +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20120401/284f0=

More information about the Catalyst mailing list