DBD::mysql installation Error

DBD::mysql installation Error

am 13.10.2003 19:54:15 von Evin

Hello,

I am installing DBD::mysql 2.9002 in my Suse Linux 8.2 system
I even tried with DBD::mysql 2.9003.
But I get the following error.
How ca nI proceed to get rid of the error and install the same.


bugzilla:~/PerlModules/DBD-mysql-2.9002 # perl Makefile.PL
I will use the following settings for compiling and testing:

cflags (mysql_config) = -I'/usr/include/mysql'
libs (mysql_config) = -L/usr/lib/mysql -lmysqlclient -lz
-lcrypt -lnsl -lm
nocatchstderr (default ) = 0
nofoundrows (default ) = 0
ssl (guessed ) = 0
testdb (default ) = test
testhost (default ) =
testpassword (default ) =
testuser (default ) =

To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.

Using DBI 1.32 installed in
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/auto/ DBI
Writing Makefile for DBD::mysql
bugzilla:~/PerlModules/DBD-mysql-2.9002 # mak test
-bash: mak: command not found
bugzilla:~/PerlModules/DBD-mysql-2.9002 # make test
cc -c -I/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/aut o/DBI
-I'/usr/include/mysql' -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3 --pipe
-DVERSION=\"2.9002\" -DXS_VERSION=\"2.9002\" -fPIC
"-I/usr/lib/perl5/5.8.0/i586-linux-thread-multi/CORE" dbdimp.c
cc -c -I/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/aut o/DBI
-I'/usr/include/mysql' -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3 --pipe
-DVERSION=\"2.9002\" -DXS_VERSION=\"2.9002\" -fPIC
"-I/usr/lib/perl5/5.8.0/i586-linux-thread-multi/CORE" mysql.c
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.so
LD_RUN_PATH="/usr/lib/mysql:/lib" /usr/bin/perl myld cc -shared
dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so
-L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../../i486-suse-l inux/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


Thank You

With regards
Evin



--
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