2 Feb 2003 05:48
Solaris 2.7 run time linking problem
Steve Sapovits <sapovitss <at> gsicommerce.com>
2003-02-02 04:48:46 GMT
2003-02-02 04:48:46 GMT
I posted this to PerlMonks and an earlier version to the DBI mailing list. Any ideas? ---- I have a problem on Solaris 2.7 that's stumped me. I have rather large Perl installations on 2 Solaris boxes: 1 Solaris 2.7; the other 2.8. Each has over 250 CPAN modules loaded, as well as a number of prerequisite libraries. Both use GNU (gcc) build environments. Both appear to be using the same versions of all software. Friday, I went to install DBD::mysql. I already had this loaded on the 2.8 box. I built it there against a recent Solaris binary download of mysql. No problems ... all tests pass, etc. On the 2.7 box I'm stuck. Everything builds okay but all the tests yield errors like this: t/00base............install_driver(mysql) failed: Can't load 'blib/arch/auto/DBD /mysql/mysql.so' for module DBD::mysql: ld.so.1: /usr/local/bin/perl: fatal: relocation error: file blib/arch/auto/DBD/mysql/mysql.so: symbol mysql_real_escape_string: referenced symbol not found at /usr/local/lib/perl5/5.6.1/sun4-solaris/DynaLoader.pm line 206. at (eval 1) line 3 Compilation failed in require at (eval 1) line 3. Perhaps a required shared library or dll isn't installed where expected Basically it looks like at run-time the mysql client library is missing in action. I've been building freeware for some time so I checked all the obvious things: missing shared libraries, unset LD_LIBRARY_PATH,(Continue reading)
RSS Feed