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

In reply to trouble installing DBD::mysql on Mac OS X 10.6.6 x64 with Perl 5.12.1 by punkish

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.