Hello All -

Help Help Help! I am having problems installing
Msql-Mysql-modules-1.2215.tar.gz and have been struggling with this for
days.  Arghh!  I am running Red Hat Linux 7.0, Perl 5.6.0, and MySQL
3.23.32.  I read about an issue similar to mine in
http://lists.omnipotent.net/mysql/200012/msg00122.html but the solution did
not work for me.   There's the problem:

++  "Perl Makefiles.PL" works fine with the exception of a warning that
states "Note (probably harmless): No library found for -lgz"
++  I do a "make" and get the following: (note the errors at the end)

mkdir blib
mkdir blib/lib
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/Msql-Mysql-modules
mkdir blib/lib/auto
mkdir blib/lib/auto/Msql-Mysql-modules
mkdir blib/man1
/usr/bin/pod2text mysql/lib/DBD/mysql.pm >README
make[1]: Entering directory
`/updates/dbi010404/Msql-Mysql-modules-1.2215/mysql'
mkdir ../blib/lib/DBD
mkdir ../blib/arch/auto/DBD
mkdir ../blib/arch/auto/DBD/mysql
mkdir ../blib/lib/auto/DBD
mkdir ../blib/lib/auto/DBD/mysql
mkdir ../blib/man3
cp lib/DBD/mysql.pm ../blib/lib/DBD/mysql.pm
cp lib/Bundle/DBD/mysql.pm ../blib/lib/Bundle/DBD/mysql.pm
cp lib/Mysql/Statement.pm ../blib/lib/Mysql/Statement.pm
cp lib/Mysql.pm ../blib/lib/Mysql.pm
gcc -c -I/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/DBI -I/usr/include/m
ysql -I../dbd -I/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/DBI -I/usr/li
b/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/i
386-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/include/m
ysql -I../dbd -I/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/DBI -I/usr/li
b/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/i
386-linux/CORE -DDBD_MYSQL mysql.c
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
LD_RUN_PATH="/usr/lib/mysql:/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/lib/mysql    -L/usr/lib/mysql -lmysqlclient -lm -lz -L/usr/li
b/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
`/updates/dbi010404/Msql-Mysql-modules-1.2215/mysql'
make: *** [subdirs] Error 2



++ The solution in the web page above suggests the following:
http://lists.omnipotent.net/mysql/200012/msg00122.html

where are your "libz*" files (e.g., /opt/lib, /lib, /usr/lib,
/usr/local/lib)?  the current version is available from  ftp.gnu.org
(/opt/lib/libz.so.1.1.3).  if you don't have a  "libz.so.blah" file then go
to ftp.gnu.org/zlibc and build a copy of it.  if you use "--prefix=/opt"
it'll put itself into /opt/lib, /opt/include, etc.  you can then add
/opt/lib to the top of /etc/ld.so.conf (if you haven't already) and the
linker will happily use your copy.  you may have to add a
CFLAGS='-I/opt/include -L/opt/lib' to your environment  before running the
perl Makefile.PL command.  Make sure to also compile zlib-1.1.3
with --shared or you won't get the .so file.

++ So I checked and I do have the libz* files and they are in /usr/lib.
Also, /etc/ld.so.conf contains the path /usr/lib.  The libz* files are
libz.so.1.1.3 and libzvt.so.2.2.7.


I am a novice so it is very possible that the answer is perfect and I'm not
interpreting it correctly.   I really would appreciate any and all help that
anyone can provide.  Please respond to me directly as well as to the list.

Thank you.

Joe Colopy
[EMAIL PROTECTED]



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to