[Zope-DB] Installing MySQLdb

Mahdi Hajimoradi mhajim@yecc.net
Sat, 4 May 2002 08:13:46 +0430


This is a multi-part message in MIME format.

------=_NextPart_000_002A_01C1F343.9D2831A0
Content-Type: text/plain;
	charset="windows-1256"
Content-Transfer-Encoding: quoted-printable

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



=20

------=_NextPart_000_002A_01C1F343.9D2831A0
Content-Type: text/html;
	charset="windows-1256"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1256">
<META content=3D"MSHTML 5.50.3825.1300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3D"Times New Roman">Hi</FONT></DIV>
<DIV><FONT face=3D"Times New Roman">I want to install MySQLdb.I've =
recieed the=20
folloing error after install the driver:</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>...creating=20
build/temp.linux-i586-1.5<BR>gcc -g -O2 -fPIC -I/usr/include/mysql=20
-I/usr/include/python1.5 -c _mysql.c -o=20
build/temp.linux-i586-1.5/_mysql.o<BR>gcc -shared=20
build/temp.linux-i586-1.5/_mysql.o -L/usr/lib/mysql -lmysqlclient -lz -o =

build/lib.linux-i586-1.5/_mysql.so<BR>/usr/bin/ld: cannot find =
-lz<BR>collect2:=20
ld returned 1 exit status<BR>error: command 'gcc' failed with exit =
status=20
1</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>*********</FONT></DIV>
<DIV><FONT face=3D"Times New Roman">This in my =
Configuration:</FONT></DIV>
<DIV><FONT face=3D"Times New Roman">Python 1.5.2 </FONT></DIV>
<DIV><FONT face=3D"Times New Roman">mysql 3.23.41(I'ev install it via=20
rpm)</FONT></DIV>
<DIV><FONT face=3D"Times New Roman">RedHat 7.2</FONT></DIV>
<DIV><FONT face=3D"Times New Roman">MySQL-python-0.9.1</FONT></DIV>
<DIV><FONT face=3D"Times New Roman">ZMySQLDA 2.0.8</FONT></DIV>
<DIV><FONT face=3D"Times New Roman"></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Times New Roman">Could you help to do =
this?</FONT></DIV>
<DIV><FONT face=3D"Times New Roman"></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Times New Roman">TNX in Adbvance</FONT></DIV>
<DIV><FONT face=3D"Times New Roman">--M. Hajimoradi</FONT></DIV>
<DIV><FONT face=3D"Times New Roman"></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Times New Roman" =
size=3D2><BR></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_002A_01C1F343.9D2831A0--