Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can't Install DBD::mysql

6 views
Skip to first unread message

Lola J. Lee Beno

unread,
Nov 28, 2007, 5:21:14 PM11/28/07
to MacPerl
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

unread,
Nov 28, 2007, 5:39:19 PM11/28/07
to Lola J. Lee Beno, MacPerl
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

> 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
mi...@mac.com
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


Lola J. Lee Beno

unread,
Nov 28, 2007, 5:51:37 PM11/28/07
to Charlie Minow, MacPerl
Charlie Minow wrote:
> 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.
As in copy all the files that already exist in /lib into /mysql
directory which I need to create, right?

Charlie Minow

unread,
Nov 28, 2007, 5:58:05 PM11/28/07
to Lola J. Lee Beno, MacPerl
On Nov 28, 2007, at 3:51 PM, Lola J. Lee Beno wrote:

> Charlie Minow wrote:
>> 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.
> As in copy all the files that already exist in /lib into /mysql
> directory which I need to create, right?

Right. I just copied the ".dylib" files and none of the other ones
into the new "mysql" directory, though. So far, it's all good.

charlie

Enrique Terrazas

unread,
Nov 28, 2007, 7:19:09 PM11/28/07
to MacPerl, Lola J. Lee Beno, Charlie Minow
Take a look at the following to specify the makefile flags:

<http://jayallen.org/journey/2006/04/dbd-mysql-build-problems-on-mac-
book-pro>

Enrique

--

Enrique Terrazas, MD, MS
Director, Laboratory Medicine Residency Program
Director, NCPL Laboratories
Chief, Laboratory Information Systems
HS Associate Clinical Professor
University of California, San Francisco
Clinical Laboratories, Box 0100
415.353.1375(UCSF/China Basin phone)
415.353.1620(UCSF/Parnassus phone)
415.353.4826(fax)
415.443.0913(pager)
Enrique....@ucsf.edu

CONFIDENTIALITY NOTICE: The information contained in this
transmission, including any enclosed files, is confidential and
intended solely for the addressee. If you are not the intended
recipient, you are hereby notified that any distribution, copying,
disclosure and use of, the contents of this transmission is strictly
prohibited. If you have received this communication in error, please
notify the sender immediately by reply email and permanently delete
this message, enclosures and all copies.

Lola J. Lee Beno

unread,
Nov 28, 2007, 9:30:56 PM11/28/07
to Charlie Minow, MacPerl
Charlie Minow wrote:
>
> Right. I just copied the ".dylib" files and none of the other ones
> into the new "mysql" directory, though. So far, it's all good.

Worked like a charm. Thank you.

0 new messages