Mac OSX 10.6.8

64 bit mysql

~$ perl -v This is perl 5, version 16, subversion 0 (v5.16.0) built for darwin-2l +evel
~$ mysql -uroot -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 48 Server version: 5.5.28 MySQL Community Server (GPL) Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights res +erved. mysql> exit Bye
~$ sudo cpan DBD::mysql Password: CPAN: Storable loaded ok (v2.34 Reading '/Users/7stud/.cpan/Metadata' Database was generated on Sat, 05 Jan 2013 19:06:47 GMT CPAN: YAML loaded ok (v0.84) Reading 34 yaml files from /Users/7stud/.cpan/build/ CPAN: Time::HiRes loaded ok (v1.9725) ..................DONE Restored the state of none (in 0.5013 secs) Running install for module 'DBD::mysql' Running make for C/CA/CAPTTOFU/DBD-mysql-4.022.tar.gz Has already been unwrapped into directory /Users/7stud/.cpan/build/D +BD-mysql-4.022-LOppYe CPAN: Parse::CPAN::Meta loaded ok (v1.4402) CPAN: CPAN::Meta loaded ok (v2.120630) CPAN: Module::CoreList loaded ok (v2.79) Has already been made Running make test PERL_DL_NONLAZY=1 /Users/7stud/perl5/perlbrew/perls/perl-5.16.0/bin/pe +rl "-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/7stud/.cpan/build/DBD-mysql-4.022-LOp +pYe/blib/arch/auto/DBD/mysql/mysql.bundle' for module DBD::mysql: dlo +pen(/Users/7stud/.cpan/build/DBD-mysql-4.022-LOppYe/blib/arch/auto/DB +D/mysql/mysql.bundle, 2): Library not loaded: libmysqlclient.18.dylib # Referenced from: /Users/7stud/.cpan/build/DBD-mysql-4.022-LOppYe/b +lib/arch/auto/DBD/mysql/mysql.bundle # Reason: image not found at /Users/7stud/perl5/perlbrew/perls/perl- +5.16.0/lib/5.16.0/darwin-2level/DynaLoader.pm line 194. # 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 CAPTTOFU/DBD-mysql-4.022.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports CAPTTOFU/DBD-mysql-4.022.tar.gz Running make install make test had returned bad status, won't install without force ~$
~$ echo $DYLD_LIBRARY_PATH /usr/local/mysql/lib
~$ cd /usr/local/mysql/lib /usr/local/mysql/lib$ ls libmysqlclient.18.dylib libmysqlclient_r.dylib libmysqlclient.a libmysqld-debug.a libmysqlclient.dylib libmysqld.a libmysqlclient_r.18.dylib libmysqlservices.a libmysqlclient_r.a plugin /usr/local/mysql/lib$

In reply to DBD::mysql won't install by 7stud

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.