[Zope-DB] Installing MySQLdb
Le grande pinguin
rm@mh-freiburg.de
Sun, 5 May 2002 14:42:03 +0200
On Sat, May 04, 2002 at 08:13:46AM +0430, 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?
Well, as your linker happily told you, your system is missing the z-compression library
(' /usr/bin/ld: cannot find -lz '). Either it's not installed (hard to belive) or it's in an
unusual place. I'm not a RedHat expert so i can't really tell you what exact rpm to install.
Ralf Mattes
> TNX in Adbvance
> --M. Hajimoradi
>
>
>
>