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











