/usr/bin/ld: cannot find -lz on Cent OS - Python 2.4

V8 NUT olaye1977 at googlemail.com
Sun Feb 21 00:03:27 CET 2010


Been trying to fix this issue for over 6 hours now.
It's doin my head in, any one know whats going on here.

==START==
python setup.py build
running build
running build_py
copying MySQLdb/release.py -> build/lib.linux-x86_64-2.4/MySQLdb
running build_ext
building '_mysql' extension
gcc -pthread -shared build/temp.linux-x86_64-2.4/_mysql.o -L/usr/lib64/
mysql -L/usr/lib64 -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -
lpthread -lssl -lcrypto -o build/lib.linux-x86_64-2.4/_mysql.so
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for
-lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -
lz
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

==END==

Am trying to get MySQL-python-1.2.3c1 installed on a CentOS 5 box
running Python 2.4
I do not want to upgrade my Python version.
I have tried:

1. yum install mysql-python
2. yum install librsync-devel
3. yum install python-devel

With all return no errors and a notification that there's nothing to
install or update.

Please help.





More information about the Python-list mailing list