Q:

Can't compile matplotlib on Ubuntu 11.04 / ft2build.h: No such file or directory

I'm trying to build matplotlib from source but it isn't working. It seems this thing was a part of X11, and since Ubuntu is now using Wayland that screwed things up, I think.
Anyway to fix this?
Oh, ok. I just had to install libfreetype6 and libfreetype6-dev with apt-get. I can't answer it now so I'll edit it later or something.

A:

I found these dependencies in the install file:
  matplotlib core: zlib, zlib-devel, libpng, libpng-devel,
                   freetype, freetype-devel, freetype-utils

  gtk backend: gtk2-devel, gtk+-devel, pygtk2, glib-devel,
               pygtk2-devel, gnome-libs-devel, pygtk2-libglade

  tk backend: tcl, tk, tkinter

Do you have all those installed?

A:

I should install libfreetype-dev (Ubuntu).

