Gossamer Forum
Home : Products : Gossamer Links : Discussions :

DBD:mysql Errors

Quote Reply
DBD:mysql Errors
Hello all.

I am having a real problem getting Msql-Mysql-modules to compile. I can get the makefile built (perl Makefile.PL) but then it fails on the first make with:

make[1]:*** [./blib/arch/auto/DBD/mysql/mysql.so] Error1
make[1]: Leaving directory 'usr/local/downloads/Msql-Mysql-modules-1.2215/mysql'
male: *** [subdirs] Error 2

Can Anyone shed some light on this?

Thanks
Drew

<hr>
Drew Selman
Earthnet Communications
http://www.i-cram.com
http://www.mcpzone.com
Quote Reply
Re: DBD:mysql Errors In reply to
Hi,

Can you display a few more lines above that? It doesn't give the error there..

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: DBD:mysql Errors In reply to
Sure, the lines above are:

gcc -c -I/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/DBI -I/usr/local/mysql/include -I../dbd -I/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/DBI -I/usr/lib/perl5/5.6.0/i386-linux -fno-strict-aliasing -O2 -march=i386 -mcpu=i686 -DVERSION=\"2.0415\" -DXS_VERSION=\"2.0415\" -fPIC -I/usr/lib/perl5/5.6.0/i386-linux/CORE -DDBD_MYSQL dbdimp.c
/usr/bin/perl -p -e "s/~DRIVER~/mysql/g" < /usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/DBI/Driver.xst > mysql.xsi
/usr/bin/perl -I/usr/lib/perl5/5.6.0/i386-linux -I/usr/lib/perl5/5.6.0 /usr/lib/perl5/5.6.0/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.6.0/ExtUtils/typemap mysql.xs > mysql.xsc && mv mysql.xsc mysql.c
gcc -c -I/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/DBI -I/usr/local/mysql/include -I../dbd -I/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/DBI -I/usr/lib/perl5/5.6.0/i386-linux -fno-strict-aliasing -O2 -march=i386 -mcpu=i686 -DVERSION=\"2.0415\" -DXS_VERSION=\"2.0415\" -fPIC -I/usr/lib/perl5/5.6.0/i386-linux/CORE -DDBD_MYSQL mysql.c
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
LD_RUN_PATH="/usr/local/mysql/lib:/lib:/usr/lib:/usr/lib/gcc-lib/i386-redhat-linux/2.96" gcc -o ../blib/arch/auto/DBD/mysql/mysql.so -shared -L/usr/local/lib dbdimp.o mysql.o -L/usr/local/mysql/lib -L/usr/local/mysql/lib -lmysqlclient -lm -lz -L/usr/lib/gcc-lib/i386-redhat-linux/2.96 -lgcc
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make[1]: *** [./blib/arch/auto/DBD/mysql/mysql.so] Error 1
make[1]: Leaving directory `/root/.cpan/build/Msql-Mysql-modules-1.2215/mysql'
make: *** [subdirs] Error 2
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible

<hr>
Drew Selman
Earthnet Communications
http://www.i-cram.com
http://www.mcpzone.com
Quote Reply
Re: DBD:mysql Errors In reply to
Hi,

You don't have the zlib module. See:

http://marc.theaimsgroup.com/...not+find+-lz&q=b

for some pointers on what's wrong.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: DBD:mysql Errors In reply to
That did it thanks...Now I just have to learn the rest of the program

<hr>
Drew Selman
Earthnet Communications
http://www.i-cram.com
http://www.mcpzone.com