Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to install Python 2.7.3 + setuptools on my Centos 5.8.

First i download sources, unzip then ./configure && make && make install.

sh setuptools-0.6c11-py2.7.egg

i get error

zipimport.ZipImportError: can't decompress data; zlib not available

and nothing helps.

whereis zlib
zlib: /usr/lib/zlib.so /usr/lib/zlib.h /usr/include/zlib.h /usr/share/man/man3/zlib.3.gz
share|improve this question
add comment

1 Answer

If you do an "rpm -qa | grep zlib" what all do you get? It could be a matter of having to

yum install zlib zlib-devel zlib-static 

This will ensure you have all of the packages you need. If you have all of those, you may need to symlink where your current version of zlib and it's libraries are to where Python is looking for them. Or specify in the Python setup where your zlib files are.

Disclaimer: I haven't installed Python 2.7.3 specifically but that's normally the issue with those types of errors in my experience.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.