Can't Install DBD::mysql
|
|
Thread rating:  |
Lola J. Lee Beno - 28 Nov 2007 22:21 GMT 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?
 Signature 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 - 28 Nov 2007 22:39 GMT 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
> I've already got DBD installed, and I'm trying to install > DBD::mysql (am running Leopard). Make test failed . . . here's the [quoted text clipped - 41 lines] > > What does this mean? -- Charlie Minow minow@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 - 28 Nov 2007 22:51 GMT > 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 [quoted text clipped - 3 lines] > 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?
 Signature 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 - 28 Nov 2007 22:58 GMT >> 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�/ [quoted text clipped - 5 lines] > 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 -- Charlie Minow minow@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
Enrique Terrazas - 29 Nov 2007 00:19 GMT 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
>>> 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�/ [quoted text clipped - 18 lines] > enigma of the kind which human ingenuity may not, by proper > application, resolve." - Edgar Allen Poe, The Gold Bug
 Signature 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.Terrazas@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 - 29 Nov 2007 02:30 GMT > 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.
 Signature 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)
|
|
|