No zlib in Python 2.4.4

David E. Konerding DSD staff dek at
Wed Apr 11 17:07:28 CEST 2007

On 2007-04-11, shamzz at <shamzz at> wrote:
> On Apr 11, 9:14 am, Marc 'BlackJack' Rintsch <bj_... at> wrote:
>> In <1176278576.196716.104... at>, shamzz wrote:
>> > Shouldn't zlib be compiled as a Python module automatically in Python
>> > 2.4.4.  I'm guessing Python is doing some kind of check and not
>> > compiling zlib for some reason?
>> It only gets compiled if the header files can be found.  Is the zlib-dev
>> or zlib-devel package installed?
> Thanks for the fast reply... this seems to be going off topic from
> Python so sorry about that.
> But yep, I've just installed (through YAST) the zlib-devel and zlib-
> devel-32 packages (zlib and zlib-32bit are already installed).
> I then did a make clean/configure/make/make install with the Python
> source, but it's still not compiling with zlib.

carefully inspect the configure output.  Where it gets to the zlib output, it
should print a message about whether it found the libraries or not.
Usually, in these situations, I find myself looking closely at the output
in config.log to see exactly what gcc command it tried to run.

If that doesn't help, take a look at the 'make' output.  It might be that there
is no check for zlib in configure, but Python goes to build the module and fails
due to missing headers or libraries.


More information about the Python-list mailing list