Subject: | perl Makefile.PL --static --config doesn't work. I need this option to load libmysqlclient.a. |
Hi,
I've been trawling the newsgroups all day over this one.
This morning it seemed so simple:
"2) There are known problems with shared versions of libmysqlclient, at least on some Linux boxes. If you receive an error message similar to install_driver(mysql) failed: Can't load
'/usr/lib/perl5/site_perl/i586-linux/auto/DBD/mysql/mysql.so' for module DBD::mysql: File not found at /usr/lib/perl5/i586-linux/5.00404/DynaLoader.pm line 166
As a workaround, recompile the Msql-Mysql-modules with
perl Makefile.PL --static --config"
BUT this option no longer seems to be available and I cannot find an old enough version of DBD::mysql that still has this option available.
According to the release notes:
"If you would like to use the static libraries (and there are excellent reasons to do so), you need to create a separate directory, copy the static libraries to that place and use the -L switch above to point to your new directory. For example:
+ mkdir /tmp/mysql-static
+ cp /usr/lib/mysql/*.a /tmp/mysql-static
+ perl Makefile.PL --libs="-L/tmp/mysql-static -lmysqlclient"
+ make
+ make test
+ make install
+ rm -rf /tmp/mysql-static
This does not work either. I've tried dozens of --lib combinations, I've even resorted to recompiling some gcc libraries, but to no avail. There are no workarounds on any newsgroup I have come across and I am at a complete lose end.
And hints/suggestions/ideas would be great.
Cheers,
Shari