Installing Python-2.7 on Ubuntu 10.4

You don’t want zlibc, it’s something else completely. You want zlib1g (which will certainly be installed already) and, as Luper mentioned, the ‘development’ package which is zlib1g-dev.

Debian-based Linux distros split each C library into a separate runtime binary package and a development package which delivers the headers for inclusion at compile time. If you want to compile something from source that relies on the library you need both packages. It’s a bit of an annoyance, but probably inevitable given the staggeringly enormous number of libs the likes of Ubuntu deliver.

Make sure you bring in other -dev packages you might want Python to be able to use, too, such as libexpat1-dev, libdb4.8-dev, libncurses5-dev and libreadline6-dev (using the Python interpreter without readline is painful!). You’ll then have to recompile Python to take advantage of them.

(Or if you can’t be bothered, you might forget setuptools, and just unpack whatever end app it is yourself and drop it in the site-packages or wherever. Have to say I’m not a huge fan of eggs.)

Leave a Comment