ich hoffe dies ist ein richtiger Ort meine Frage zu stellen und es gibt hoffentlich jemand der mir weiterhelfen kann.
Mein problem ist, dass ich auf einem Solaris 10 System DBD (4.007) installiern will. MySQL ist unter /opt/mysql-5.0.51a installiert.
ich nutze das coolstack perl unter /opt/coolstack/perl. Damit habe ich schon einige Perl module erfolgreich installiert
meine Installation:
- Code: Select all
/opt/coolstack/bin/perl Makefile.PL --cflags=-I/opt/mysql-5.0.51a/include --libs="-L/opt/mysql-5.0.51a/lib -lmysqlclient" CC=gcc CCDFLAGS=-fPIC LD=gcc OPTIMIZE=" "
das läuft auch durch
starte ich nun gmake was auch ohne probleme durchläuft.
nun kommt gmake test, was mit
- Code: Select all
PERL_DL_NONLAZY=1 /opt/coolstack/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00base....................
# Failed test 'use DBD::mysql;'
# in t/00base.t at line 21.
# Tried to use 'DBD::mysql'.
# Error: Can't load '/opt/scratch/DBD-mysql-4.007/blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: ld.so.1: perl: fatal: relocation error: file /opt/scratch/DBD-mysql-4.007/blib/arch/auto/DBD/mysql/mysql.so: symbol mysql_sqlstate: referenced symbol not found at /opt/coolstack/lib/perl5/5.8.8/sun4-solaris-thread-multi/DynaLoader.pm line 230.
# at (eval 6) line 2
# Compilation failed in require at (eval 6) line 2.
# BEGIN failed--compilation aborted at t/00base.t line 21.
t/00base....................NOK 2FAILED--Further testing stopped: Unable to load DBD::mysql
abbricht.
wenn ich
- Code: Select all
ldd /opt/scratch/DBD-mysql-4.007/blib/arch/auto/DBD/mysql/mysql.so
- Code: Select all
libmysqlclient.so.12 => /usr/sfw/lib/libmysqlclient.so.12
Und hier ist das Problem... er verweist auf das falsche libmysqlclient... nur wie bringe ich ihm bei, das aus meiner MySQL installation zu nehmen ?
Vielen Dank fürs Lesen