Re: Can't Install DBD::mysql

[email protected] (Charlie Minow)
Newsgroups perl.macosx
Message-ID <[email protected]>
I ran into this on Tiger as well. For some reason, it's looking for  
the MySQL libraries in the wrong place. MySQL puts them in /usr/local/ 
mysql/lib, but the make file for DBD::mysql looks a little deeper,  
in /usr/local/mysql/lib/mysql. I could never figure out how to fix  
that path in the makefile, so, in the interest of getting on with my  
life, I made a "mysql" directory in /usr/local/mysql/lib, then copied  
all the dylib files into that.

charlie


On Nov 28, 2007, at 3:21 PM, Lola J. Lee Beno wrote:

> I've already got DBD installed, and I'm trying to install  
> DBD::mysql (am running Leopard).  Make test failed . . . here's the  
> first test that failed:
>
> Running make test
> PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"  
> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> t/00base...............1/5 install_driver(mysql) failed: Can't load  
> '/Users/lolajl/.cpan/build/DBD-mysql-4.005-TMoE4S/blib/arch/auto/ 
> DBD/mysql/mysql.bundle' for module DBD::mysql: dlopen(/Users/ 
> lolajl/.cpan/build/DBD-mysql-4.005-TMoE4S/blib/arch/auto/DBD/mysql/ 
> mysql.bundle, 2): Library not loaded: /usr/local/mysql/lib/mysql/ 
> libmysqlclient.15.dylib
>  Referenced from: /Users/lolajl/.cpan/build/DBD-mysql-4.005-TMoE4S/ 
> blib/arch/auto/DBD/mysql/mysql.bundle
> t/00base...............3/5   Reason: image not found at /System/ 
> Library/Perl/5.8.8/darwin-thread-multi-2level/DynaLoader.pm line 230.
> at (eval 3) line 3
> Compilation failed in require at (eval 3) line 3.
> Perhaps a required shared library or dll isn't installed where  
> expected
> at t/00base.t line 38
> t/00base............... Dubious, test returned 2 (wstat 512, 0x200)
> Failed 2/5 subtests
> t/10connect............install_driver(mysql) failed: Can't load '/ 
> Users/lolajl/.cpan/build/DBD-mysql-4.005-TMoE4S/blib/arch/auto/DBD/ 
> mysql/mysql.bundle' for module DBD::mysql: dlopen(/Users/ 
> lolajl/.cpan/build/DBD-mysql-4.005-TMoE4S/blib/arch/auto/DBD/mysql/ 
> mysql.bundle, 2): Library not loaded: /usr/local/mysql/lib/mysql/ 
> libmysqlclient.15.dylib
>  Referenced from: /Users/lolajl/.cpan/build/DBD-mysql-4.005-TMoE4S/ 
> blib/arch/auto/DBD/mysql/mysql.bundle
>  Reason: image not found at /System/Library/Perl/5.8.8/darwin- 
> thread-multi-2level/DynaLoader.pm line 230.
> at (eval 5) line 3
> Compilation failed in require at (eval 5) line 3.
> Perhaps a required shared library or dll isn't installed where  
> expected
> at t/10connect.t line 25
> # Looks like your test died before it could output anything.
> t/10connect............ Dubious, test returned 255 (wstat 65280,  
> 0xff00)
> Failed 2/2 subtests
>
>
> What does this mean?
>
> -- 
> Lola J. Lee Beno - ColdFusion Programmer/Web Designer for Hire
> http://www.lolajl.net/resume | Blog at http://www.lolajl.net/blog/
> "In rivers, the water that you touch is the last of what has passed
> and the first of that which comes; so with present time." -  
> Leonardo da Vinci (1452-1519)
>

--
Charlie Minow
[email protected]
http://www.cminow.org

"...it may well be doubted whether human ingenuity can construct an
enigma of the kind which human ingenuity may not, by proper
application, resolve." - Edgar Allen Poe, The Gold Bug
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.