problem with building a static linked DBI/DBD-mysql

problem with building a static linked DBI/DBD-mysql

am 15.07.2003 13:58:38 von Sven Hilbert

Hello all,

working on/with:

SuSE Linux 6.1 - Kernel 2.2.5
MySQL 4.0.13 (binary)
Perl 5.8.0 (source)
DBI 1.3.7 (source)
DBD-mysql 2.9002 (source)

all the installation succeded, except DBD-mysql.
Running 'make test' delivers errors like this:


t/00base...........install_driver(mysql) failed: Can't load
'/usr/local/DBD-mysql2.9002/blib/arch/auto/DBD/mysql/mysql.s o' for module
DBD::mysql: libmysqlclient.so.4: cannot open shared object file: No such
file or directory at /usr/local/lib/perl5/5.8.0/i586-linux/DynaLoader.pm
line 229.
at (eval 1) line 3
Compilation failed in require at (eval 1) line 3.
Perhaps a required shared library or dll isn't installed where expected at
t/00base.t line 38
t/00base...........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 4-5
Failed 2/5 tests, 60.00% okay


According to install.html I guess, I should build a static linked version of
Perl/DBI/DBD. But when I try
'perl Makefile.PL -static -config'
it returns
'unknown option: static'
'unknown option: config'

And entering
'perl Makefile.PL --libs=/usr/local/mysql/lib/libmysqlclient.a'
is ignorred and the output of mysql_config is used instead.

How can I build a static bundle?
Or what else can I do?
Any hints?


Thanks,

Sven


--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org