Posted on 2009-12-29 18:26:54-08 by kingquattro
I second the trouble with DBD::mysql install on MBP OS X 10.6.2
Hi, I have search pretty much all forums, and haven't found a solution. I am hoping someone here could help. I am having same problems install DBD::mysql, and other user. Here is my make test output.
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/a +rch')" t/*.t t/00base....................ok 1/6 # Failed test 'use DBD::mysql;' # at t/00base.t line 21. # Tried to use 'DBD::mysql'. # Error: Can't load '/Users/XXXXXXX/Downloads/DBD-mysql-4.013/blib/arch/auto/DBD/mysql/mysql.b +undle' for module DBD::mysql: dlopen(/Users/XXXXXXX/Downloads/DBD-mysql-4.013/blib/arch/auto/DBD/m +ysql/mysql.bundle, 2): no suitable image found. Did find: # /Users/XXXXXXX/Downloads/DBD-mysql-4.013/blib/arch/auto/DBD/mysql/mysql.bundle: mach-o, but wron +g architecture at /System/Library/Perl/5.10.0/darwin-thread-multi-2level/DynaLoader.pm line 207. # at (eval 6) line 2 # Compilation failed in require at (eval 6) line 2. # BEGIN failed--compilation aborted at t/00base.t line 21. t/00base....................NOK 2/6FAILED--Further testing stopped: Unable to load DBD::mysql make: *** [test_dynamic] Error 9
Here are some of my configurations. I am using my install of Mysql, which if version 5.1.14 x86 32 bit only.
>otool -L /Users/XXXXXX/Downloads/DBD-mysql-4.013/blib/arch/auto/DBD/mysql/mysql.bundle /Users/XXXXXXXX/Downloads/DBD-mysql-4.013/blib/arch/auto/DBD/mysql/mysql.bundle: /usr/local/mysql/lib/libmysqlclient.16.dylib (compatibility version 17.0.0, current version 17.0.0 +) /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.0.0)
>file /usr/local/mysql/lib/libmysqlclient.16.dylib /usr/local/mysql/lib/libmysqlclient.16.dylib: Mach-O dynamically linked shared library i386
>file /usr/lib/libz.1.dylib /usr/lib/libz.1.dylib: Mach-O universal binary with 3 architectures /usr/lib/libz.1.dylib (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x8 +6_64 /usr/lib/libz.1.dylib (for architecture i386): Mach-O dynamically linked shared library i386 /usr/lib/libz.1.dylib (for architecture ppc7400): Mach-O dynamically linked shared library ppc
>file /usr/lib/libSystem.B.dylib /usr/lib/libSystem.B.dylib: Mach-O universal binary with 3 architectures /usr/lib/libSystem.B.dylib (for architecture x86_64): Mach-O 64-bit dynamically linked shared libra +ry x86_64 /usr/lib/libSystem.B.dylib (for architecture i386): Mach-O dynamically linked shared library i386 /usr/lib/libSystem.B.dylib (for architecture ppc7400): Mach-O dynamically linked shared library ppc
I don't know what else to try, and am stuck with out this, since I can't get my perl code to talk to my DBs. Please help.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.