Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am having trouble installing the gd library and gdmodule for python firstly I have done

sudo apt-get install mercurial sudo apt-get install libgd2-xpm-dev then trying to install the gd module using sudo python install which I downloaded from

I get the warning WARNING: missing gd, jpeg, png, gif, z, x11, Xmp, rtf, freetype Libraries Can't Find GD Libraries

How can I install both properly, I get no errors when installing the first two. I am completely stuck and I am very new to using Ubuntu, so do not know a lot.

share|improve this question

The latest release of these python bindings for gd are already in the Ubuntu repositories (at least of Ubuntu 12.04, "precise pangolin"), so you should just be able to do this:

sudo apt-get install python-gd

Unless you need recent changes that have not yet been published to the world as part of an official release of the bindings, or you want to make changes to the source code yourself, there's probably no need to check out the latest source from mercurial and install it yourself using Also, if you successfully run python install, it may not be easy to uninstall, whereas that should always be possible with the official debian packages that Ubuntu provides.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .