Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
DBD::mysql on OSX
jhannah@Jay-Hannahs-iMac:~/src/DBD-mysql-4.022$ perl -MDBD::mysql -e 1
Can't load '/Users/jhannah/perl5/perlbrew/perls/perl-5.16.0/lib/site_perl/5.16.0/darwin-2level/auto/DBD/mysql/mysql.bundle' for module DBD::mysql: dlopen(/Users/jhannah/perl5/perlbrew/perls/perl-5.16.0/lib/site_perl/5.16.0/darwin-2level/auto/DBD/mysql/mysql.bundle, 1): Library not loaded: libmysqlclient.18.dylib
Referenced from: /Users/jhannah/perl5/perlbrew/perls/perl-5.16.0/lib/site_perl/5.16.0/darwin-2level/auto/DBD/mysql/mysql.bundle
Reason: image not found at /Users/jhannah/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0/darwin-2level/ line 194.
at -e line 0.
Compilation failed in require.
BEGIN failed--compilation aborted.

jhannah commented Sep 21, 2012

Huh. Fixed.
export DYLD_LIBRARY_PATH=/usr/local/mysql/lib


jhannah commented Sep 21, 2012

Ha. So now this is back

$ ps -ef | grep perl
dyld: DYLD_ environment variables being ignored because main executable (/bin/ps) is setuid or setgid
501  9473  1158   0  5:17PM ttys003    0:00.00 grep perl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment