MySQL Forums
Forum List  »  Perl

Re: Problems when 'make' in DBD::mysql
Posted by: Ferdi Ladeira
Date: September 17, 2007 07:44AM

I had the same problem - only way around was to compile using the static MySQL libraries.

Copy the MySQL static libraries to a known location,
e.g. cp /usr/local/mysql/lib/*.a /tmp/mysql-staticlib
then change your perl makeline as follows:

perl Makefile.PL --libs="-L/tmp/mysql-staticlib -lmysqlclient"

This creates a makefile which statically links in the MySQL libs and you should get it going then.

I never managed to get the dynamically linked libraries to work, so I use the static linked libraries


Options: ReplyQuote

Written By
September 10, 2007 04:32AM
Re: Problems when 'make' in DBD::mysql
September 17, 2007 07:44AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.