Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

trouble installing DBD::mysql on Mac OS X 10.6.6 x64 with Perl 5.12.1

by punkish (Priest)
on May 20, 2011 at 02:40 UTC ( #905842=perlquestion: print w/ replies, xml ) Need Help??
punkish has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to get DBD::mysql-4.019 working on my MacBook with my own installed Perl 5.12.1, and MySQL installed from an install package downloaded from mysql.org. The mysql installer installs under /usr/local/mysql, so I added /usr/local/mysql/bin to the bash path and installed like so

perl Makefile.PL --mysql_config=/usr/local/mysql/bin/mysql_config make

But when I do make test, I get the following error --

PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" " +test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00base.t .................. 1/6 # Failed test 'use DBD::mysql;' # at t/00base.t line 21. # Tried to use 'DBD::mysql'. # Error: Can't load '/Users/punkish/Projects/DBD-mysql-4.019/blib +/arch/auto/DBD/mysql/mysql.bundle' for module DBD::mysql: dlopen(/Use +rs/punkish/Projects/DBD-mysql-4.019/blib/arch/auto/DBD/mysql/mysql.bu +ndle, 2): Library not loaded: libmysqlclient.16.dylib # Referenced from: /Users/punkish/Projects/DBD-mysql-4.019/blib/arch +/auto/DBD/mysql/mysql.bundle # Reason: image not found at /usr/local/lib/perl5/5.12.1/darwin-2lev +el/DynaLoader.pm line 204. # at (eval 7) line 2 # Compilation failed in require at (eval 7) line 2. # BEGIN failed--compilation aborted at (eval 7) line 2. Bailout called. Further testing stopped: Unable to load DBD::mysql FAILED--Further testing stopped: Unable to load DBD::mysql make: *** [test_dynamic] Error 255

Suggestions?



when small people start casting long shadows, it is time to go to bed

Comment on trouble installing DBD::mysql on Mac OS X 10.6.6 x64 with Perl 5.12.1
Select or Download Code
Re: trouble installing DBD::mysql on Mac OS X 10.6.6 x64 with Perl 5.12.1
by Anonymous Monk on May 20, 2011 at 03:05 UTC
      Actually, the following helped

      > export DYLD_LIBRARY_PATH=/usr/local/mysql/lib/

      After that, make test, and everything else worked. See http://bugs.mysql.com/bug.php?id=58981



      when small people start casting long shadows, it is time to go to bed
Re: trouble installing DBD::mysql on Mac OS X 10.6.6 x64 with Perl 5.12.1
by Anonymous Monk on May 03, 2013 at 14:18 UTC
    Having the same issue. Resolved installing the 64 bit version of mysql server.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://905842]
Approved by Tanktalus
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2015-07-04 20:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls