Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

You don't need to install gd from source, it's in the repositories:

sudo apt-get install python-gd

If, for some reason, you still want to install from source, it's easy to install all build dependencies as well:

sudo apt-get build-dep python-gd
share|improve this answer
I still get the warning error for the gd module part though – user129950 Feb 10 '13 at 11:20
and when I try to install from the source it says unable to find source package for python-gd – user129950 Feb 10 '13 at 11:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.