I am facing an error while installing DBD

I am facing an error while installing DBD

am 28.03.2003 15:06:50 von Surinder Pal Singh

------=_NextPart_000_0031_01C2F561.60B60690
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi List,

please help me with this

While installing DBD on Mandrake Linux 7.2 ,after I run the command perl =
Makefile.PL when I give the command make it gives the following error=20

[root@neo DBD-mysql-2.1026]# make
gcc -c =
-I/usr/local/ActivePerl-5.8/lib/site_perl/5.8.0/i686-linux-t hread-multi/
auto/DBI -I/usr/local/mysql/include -D_REENTRANT -D_GNU_SOURCE =
-fno-strict-alias
ing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -I/usr/include/gdbm -O3 =
-DVERSI
ON=3D\"2.1026\" -DXS_VERSION=3D\"2.1026\" -fpic =
"-I/usr/local/ActivePerl-5.8/lib/5.8
..0/i686-linux-thread-multi/CORE" dbdimp.c
gcc -c =
-I/usr/local/ActivePerl-5.8/lib/site_perl/5.8.0/i686-linux-t hread-multi/
auto/DBI -I/usr/local/mysql/include -D_REENTRANT -D_GNU_SOURCE =
-fno-strict-alias
ing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -I/usr/include/gdbm -O3 =
-DVERSI
ON=3D\"2.1026\" -DXS_VERSION=3D\"2.1026\" -fpic =
"-I/usr/local/ActivePerl-5.8/lib/5.8
..0/i686-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=3D"/usr/local/mysql/lib:/usr/lib" =
/usr/local/ActivePerl-5.8/bin/perl m
yld gcc -shared dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so =
-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


If I remove the -lz flag from the makefile it runs succesfully but I =
dont want to do that as some of my of my perl script is not running =
makinng use of the DBD module , which has probably somethi ng to do with =
the DBD module not being installed with the -lz option

Thanks in advance

------=_NextPart_000_0031_01C2F561.60B60690--

Re: I am facing an error while installing DBD

am 28.03.2003 15:42:20 von Jochen Wiedmann

Zitiere Surinder Pal Singh :

> 2.) On Red Hat Linux install libz-devel

As the message suggests, go to find packages like "libz-devel",
"zlib-devel" or however its called on Mandrake and install them.

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

Re: I am facing an error while installing DBD

am 28.03.2003 15:42:20 von Jochen Wiedmann

Zitiere Surinder Pal Singh :

> 2.) On Red Hat Linux install libz-devel

As the message suggests, go to find packages like "libz-devel",
"zlib-devel" or however its called on Mandrake and install them.

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