|
Posted by David Filmer on November 2, 2004, 11:10 am
Please log in for more thread options
Hello. I encountered problems building DBD::mysql on AIX 5.1. I solved
the problem and post my experience here for the possible benefit of
others who may Google this newsgroup.
"make test" failed with dozens of messages similar to this:
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00base...........install_driver(mysql) failed: Can't load
'/dsk2/download/perl/DBD-mysql-2.9005_3/blib/arch/auto/DBD/mysql/mysql.so'
for module DBD::mysql: 0509-022 Cannot load module
/opt/freeware/lib/mysql/libmysqlclient.a(libmysqlclient.so.10).
0509-150 Dependent module /usr/local/lib/libz.a(libz.so.1)
could not be loaded.
0509-152 Member libz.so.1 is not found in archive
0509-022 Cannot load module /usr/local/lib/libz.a.
0509-150 Dependent module /usr/local/lib/libz.a could not be
loaded. at /usr/local/lib/perl5/5.8.5/aix/DynaLoader.pm line 230.
The problem was related to the libz library. I'm not sure where I got
/usr/local/lib/libz.a but it was causing problems. I had previously
installed an IBM RPM of libz (libz.a) which resided in
/opt/freeware/lib (per the usual IBM RPM conventions).
When I renamed the version of libz.a in /usr/local/lib to something
else (libz.a.bak) then I was able to build/test/install DBD::mysql
without incident.
I have NO IDEA what the actual problem was with /usr/local/lib or how
it came about (ideas welcome), but this is how I solved the problem.
Cheers!
|