List:MySQL and Perl« Previous MessageNext Message »
From:Jochen Wiedmann Date:February 9 2003 3:50pm
Subject:Re: perl + mysql + DBD + DBI
View as plain text  
Quoting Tiago Lopes <tiagojab@stripped>:

> the situation is the following: I compiled Perl 5.8.0,
> mysql 3.23.53, Perl 5.8.0, DBI 1.32, and DBD-2.10.24
> with gcc v2.95.3 and ld (unknow version) and as
> 2.11.2, and make v3.8.
> And I'm using Solaris 8 (SUN_OS 5.8).
> Evething was ok, except DBD, that fails on the 'make
> test' step.
> Then, I made a simple script in perl to show the
> drives and connect with the database by DBI:mysql. And
> the message I received was:
> Available Drivers: ExampleP, Proxy, mysql
> /usr/local/bin/perl: fatal: relocation error:
> file
> /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBD/mysql/
> symbol mysql_init: referenced symbol not found
> Killed

This is most probably due to problems with shared libraries.
Try to use the static library "libmysqlclient.a" by changing
the value of --libs when invoking the Makefile.PL. For example,
if you currently have

    --libs="-L/usr/local/mysql/lib -lmysql"

then change that to


Let me know the result.


perl + mysql + DBD + DBITiago Lopes7 Feb
  • Re: perl + mysql + DBD + DBIJochen Wiedmann9 Feb