DBD:mysql installation problems

DBD:mysql installation problems

am 18.10.2002 17:16:14 von Mike Clark

This machine is running Debian linux kernel 2.2.19

I received the following error when trying to install DBD::mysql
perl -MCPAN -e 'install DBD::mysql'

Got the same error when attempting a re-install of mysql
perl -MCPAN -e 'install Mysql'



LD_RUN_PATH="/usr/local/mysql/lib:/usr/lib" /usr/bin/perl myld cc -o
blib/arch/auto/DBD/mysql/mysql.so -shared -L/usr/local/lib dbdimp.o
ql.o -L/usr/local/mysql/lib -lmysqlclient -lz
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status


An error occurred while linking the DBD::mysql driver. The error
message seems to indicate that you don't have a libz.a, libgz.a,
libz.so or libgz.so. This is typically resolved by:

1.) You may try to remove the -lz or -lgz flag from the libs list
by using the --libs switch for "perl Makefile.PL".
2.) On Red Hat Linux install libz-devel
3.) On other systems, please contact the mailing list

Msql-Mysql-modules@lists.mysql.com

For further hints, see INSTALL.html, section Linker flags.
make: *** [blib/arch/auto/DBD/mysql/mysql.so] Error 1
/usr/bin/make -- NOT OK
Running make test
Oops, make had returned bad status
Running make install
Oops, make had returned bad status
hosting:/usr/lib/perl5/DBD#



In the /usr/lib directory, here's what ls shows:

/usr/lib# ls | grep libz
libz.so.1
libz.so.1.1.3
libzvt.so.2
libzvt.so.2.2.6

/usr/lib# ls -al | grep libgz
no results


Any suggestions will be appreciated.

Thanks
Mike Clark
nuts@coconutisland.com



------------------------------------------------------------ ---------
Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
posting. To request this thread, e-mail msql-mysql-modules-thread1956@lists.mysql.com

To unsubscribe, send a message to the address shown in the
List-Unsubscribe header of this message. If you cannot see it,
e-mail msql-mysql-modules-unsubscribe@lists.mysql.com instead.