[Zope-DB] Installing MySQLdb

Antonio Orlando aorlando2002@yahoo.com.br
Mon, 06 May 2002 08:51:14 -0400


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.

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