For an legacy application (plone 2.0.5) i need python 2.3. The compile succeeds but the zlib module is not built. The zlib.h file is present in /usr/include I am at a loss here because later versions of python compile without problems with zlib support. I tried so far: configure --prefix=path/to/my/install --zlib=/usr/include and with a zlib compiled from scratch in my home dir configure --prefix=path/to/my/install --zlib=/home/my-user/include configure --prefix=path/to/my/install --zlib=/home/my-user/ also configure --prefix=path/to/my/install --zlib=/home/my-user/ between make runs i always do a: make clean so no remnants of previous compiles should interfere asked 01 Dec '11, 06:18 Christian Le... |
Edit: Klynton looked into this and found the solution in the comments at this post: Configure and compile Python with Zlib The trick is after you run
That said, if you still want to build against a locally-installed zlib, then my original answer below should work. I just tested installing Python 2.3 with zlib support on one of our CentOS 6 servers and was able to do it as follows (installing everything into
A quick test after the build shows that zlib is available and working:
Hope that helps! answered 01 Dec '11, 10:43 seanf |
thanks that works. Just for the record: the trick seems to be to install zlib and python in the SAME directory (same --prefix) so configure zlib:
and python:
note the answered 02 Dec '11, 00:35 Christian Le... |