using Debian 3.0r1
mySQL4.0.16 is installed by binary at /usr/local/mysql
perl 5.8.2 is installed at /usr/local
try to install perl DBD::mysql
trying perl -MCPAN -e 'install "DBD::mysql"' not work
download the source
perl Makefile.PL :
Code:
...
cflags (guessed) = -I/usr/local/mysql/include
libs (guessed) = -L/usr/local/mysql/lib -lmysqlclient -lz -lgz
nocatchstderr (default) = 0
nofoundrows (default) = 0
ssl (guessed) = 0
testdb (default) = test
testhost (default) =
testpassword (default) =
testuser (default) =
...
Note (probably harmless): No library found for -lgz
...
make:
Code:
...
LD_RUN_PATH="/usr/lib" /usr/local/bin/perl myld cc -shared -L/usr/local/lib dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so -L/usr/local/mysql/lib -lmysqlclient -lz
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
...
wondering...
read many online documents and still cannot solve it.
wish anyone can help
thx a lot!!!