What are the packages/libraries I should install before compiling Python from source?

Posted by Lennart Regebro on Ask Ubuntu See other posts from Ask Ubuntu or by Lennart Regebro
Published on 2011-01-14T18:14:02Z Indexed on 2011/01/14 18:59 UTC
Read the original article Hit count: 297

Once in a while I need to install a new Ubuntu (I used it both for desktop and servers) and I always forget a couple of libraries I should have installed before compiling, meaning I have to recompile, and it's getting annoying.

So now I want to make a complete list of all library packages to install before compiling Python (and preferably how optional they are).

Off the top of my head I can remember these:

build-essential (obviously)
libz-dev        (also pretty common and essential)
libreadline-dev (or the Python prompt is crap)

But I know there are many more. Please tell me and I'll update.

© Ask Ubuntu or respective owner

Related posts about python

Related posts about compiling