5 messages in com.mysql.lists.perlRe: relocation error (DBD-mysql-2.1025)
FromSent OnAttachments
Marc Delisle26 Feb 2003 12:28 
Jochen Wiedmann02 Mar 2003 16:49 
Marc Delisle03 Mar 2003 06:50 
Jochen Wiedmann03 Mar 2003 12:50 
Marc Delisle04 Mar 2003 07:12 
Subject:Re: relocation error (DBD-mysql-2.1025)
From:Marc Delisle (deli@CollegeSherbrooke.qc.ca)
Date:03/03/2003 06:50:19 AM
List:com.mysql.lists.perl

Jochen Wiedmann wrote:

Quoting Marc Delisle <deli@CollegeSherbrooke.qc.ca>:

So I read the doc :) and found a suggestion to link statically libmysqlclient.a, but I cannot find the right syntax with "perl Makefile.PL" to link statically my libmysqlclient.a which is in /root/marc.

Should be --libs="/root/marc/libmysqlclient.a"

Thanks Jochen. My libmysqlclient.a is there:

/root/ftp/marc/perl/lib/mysql/libmysqlclient.a

So with DBD-mysql-2.1025 I tried this (on the same line)

perl Makefile.PL --testdb=xxx --testuser=xxx --testpassword=xxx --testhost=xx --cflags=-I/root/ftp/marc/perl/include/mysql --libs="/root/ftp/marc/perl/lib/mysql/libmysqlclient.a"

and got:

Can't exec "mysql_config": No such file or directory at Makefile.PL line 169. readline() on closed filehandle main::PIPE at Makefile.PL line 171. ...

Checking if your kit is complete... Looks good Unrecognized argument in LIBS ignored: '/root/ftp/marc/perl/lib/mysql/libmysqlclient.a' Using DBI 1.32 installed in /usr/lib/perl5/site_perl/i386-linux/auto/DBI