can't decompress data; zlib not available

Steve Edlefsen steve at sprangle.com
Mon Nov 14 14:30:15 EST 2011


Sorry about that.  Ubuntu 11.10.

I used

Plone-4.1.2-UnifiedInstaller.tar

which installed o.k.  I'm serving a webpage on my LAN.

I did a search on files named "python" on my machine.
There are 23 not including the ones in the Plone
buildout-cache in my account.  Seems like a lot of
applications install their own copy of python.

There are also

./usr/lib/x86_64-linux-gnu/libz.so
./usr/lib/libz.so

which, I believe, are the zlib libraries.

I've read that you can reinstall python with configure
using the "--with-zlib" option, but configure isn't in

/usr/local/Plone/Python-2.6/lib/python2.6/config

I think the python interpreter for the command line is
the one in /usr/bin/python.  Would this be the one I
reconfigure for zlib?  Should I simply install python from

Python-3.2.2.tgz?

On 11/13/2011 02:55 PM, Tim Wintle wrote:
> On Sun, 2011-11-13 at 11:17 -0700, Steve Edlefsen wrote:
>> which appears to install zlib when python is reinstalled.  Except I
>> can't run make without errors and there is no configuration file.
>>
>> How do I reinstall python to include zlib?
> Which OS are you on? Linux? BSD?
>
> How did you install Plone?
>
> First I'd check if there's a module shadowing the builtin zlib module -
> i.e. if you've got a local file called "zlib.py" which is getting
> imported by mistake.
>
>
> Fairly much all *nix systems will have a python installation out of the
> box - it looks like you need python2.6
>
> I've never had a missing zlib module - but it's possible that it might
> be missing if you don't have the zlib/deflate headers installed - if
> they're not available then I'd try installing them and then reinstalling
> the package you started with.
>
> Tim Wintle
>



More information about the Python-list mailing list