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

Jonathan Gardner jgardner at jonathangardner.net
Sun Feb 21 02:37:21 CET 2010


On Sat, Feb 20, 2010 at 3:03 PM, V8 NUT <olaye1977 at googlemail.com> wrote:


> /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

This is your problem.

>
> 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.
>

I think you need libz's -devel module. Not sure what libz is or what
its name is in the yum repository. Might take a search or maybe an rpm
-qif /usr/lib/libz.so

The problem could be that mysql-python expects to see a different
version of libz than what's installed on your box. If so, you'll need
to see if you can find the right version.

The MySQL-python people should have more help for you.


-- 
Jonathan Gardner
jgardner at jonathangardner.net



More information about the Python-list mailing list