public
Created

DBD::mysql on OSX

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7
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/DynaLoader.pm line 194.
at -e line 0.
Compilation failed in require.
BEGIN failed--compilation aborted.

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

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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.