Personal tools
You are here: Home Documentation How To's Workaround for zlib problem when building Plone 4.0.5 on Ubuntu Desktop 11.05

Workaround for zlib problem when building Plone 4.0.5 on Ubuntu Desktop 11.05

by T. Kim Nguyen last modified May 24, 2011 09:16 PM

If you get this error using the Plone 4.0.5 unified installer:

Compiling and installing jpeg local libraries ...
Skipping zlib build
Compiling and installing readline local libraries ...
Installing Python 2.6.6. This takes a while...
Traceback (most recent call last):
  File "<string>", line 1, in <module>
LookupError: unknown encoding: zip
Python zlib support is missing; something went wrong in the zlib or python build.

Installation has failed.

You should use the patch workaround found at the bottom this page:

http://stackoverflow.com/questions/6030876/plone-4-0-5-unified-installer-failing-on-ubuntu-11-04-natty-with-zip-zlib-error

Specifically, the patch at

http://hg.python.org/cpython/raw-rev/7582a78f573b

changes the setup.py included in the Python-2.6.6.tar.bz2 

To apply the patch, you 

tar xfj Python-2.6.6.tar.bz2
wget http://hg.python.org/cpython/raw-rev/7582a78f573b
cd Python-2.6.6
patch < ../7582a78f573b
cd ..
mv Python-2.6.6.tar.bz2 Python-2.6.6.tar.bz2.orig
tar cfj Python-2.6.6.tar.bz2 Python-2.6.6

then go back up one directory and run the unified installer normally.

 

Document Actions
  • Print this
  • Bookmarks