Skip Menu |

This queue is for tickets about the DBD-mysql CPAN distribution.

Report information
The Basics
Id: 4571
Status: resolved
Priority: 0/
Queue: DBD-mysql

People
Owner: Nobody in particular
Requestors: shari.arman [...] sun.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 2.9003
Fixed in: (no value)



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
Please do no longer use the Msql-Mysql-modules in favour of the DBD::mysql distribution. Also, please use the mailing list perl@lists.mysql.com for problem reports. Thanks!