[Zope-DB] Installing MySQLdb

Le grande pinguin rm@mh-freiburg.de
Mon, 6 May 2002 14:41:44 +0200


On Mon, May 06, 2002 at 08:51:14AM -0400, Antonio Orlando wrote:
> 
> the ld usually stays at /usr/bin. I think this is installed by default 
> on red hat, but give a look at your packages. the rpm package is binutils.

Please read the original posted error message: it's actually generated by
'/usr/bin/ld', so the program _is_ installed. The error message says it all:
libz.so can't be found. Either the library is missing or installed in a place
that isn't searched by the linker (if so, adding '-L /your/strange/libplace'
in the link settings will cure the problem).

 Ralf Mattes


> hth,
> 
> anTONIo
> 
> Juli?n Mu?oz wrote:
> 
> > This is because the compiler gcc doesn't find the libz library. Install
> > it?
> > :-)
> > 
> > 
> > On Sat, 4 May 2002, Mahdi Hajimoradi wrote:
> > 
> > 
> >>Hi
> >>I want to install MySQLdb.I've recieed the folloing error after install the driver:
> >>...creating build/temp.linux-i586-1.5
> >>gcc -g -O2 -fPIC -I/usr/include/mysql -I/usr/include/python1.5 -c _mysql.c -o build/temp.linux-i586-1.5/_mysql.o
> >>gcc -shared build/temp.linux-i586-1.5/_mysql.o -L/usr/lib/mysql -lmysqlclient -lz -o build/lib.linux-i586-1.5/_mysql.so
> >>/usr/bin/ld: cannot find -lz
> >>collect2: ld returned 1 exit status
> >>error: command 'gcc' failed with exit status 1
> >>*********
> >>This in my Configuration:
> >>Python 1.5.2
> >>mysql 3.23.41(I'ev install it via rpm)
> >>RedHat 7.2
> >>MySQL-python-0.9.1
> >>ZMySQLDA 2.0.8
> >>
> >>Could you help to do this?
> >>
> >>TNX in Adbvance
> >>--M. Hajimoradi
> >>
> >>
> >>
> >>
> >>
> >>
> > 
> 
> 
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> 
> _______________________________________________
> Zope-DB mailing list
> Zope-DB@zope.org
> http://lists.zope.org/mailman/listinfo/zope-db