You are missing freetype2 or at least the development version. He is looking for ft2build.h , which is the freetype2 header file.
You can either install freetype2 from the source, or just a package manager such as macports, fink or homebrew to install it (for package managers, make sure you select the development version, if any).
But if you follow the path of package managers, you can also install matplotlib this way. And there may be binaries for OS X that include freetype2, so it can be even simpler than installing from the source.
The reason easy_install and pip does not install freetype2 for you, it is not a Python package.
== Correction ==
freetype2 should be available, not just where easy_install or pip is expecting it. On my Mac, I can ft2build.h in / usr / X 11 / include. Thus, you need to set the CFLAGS variable to this directory (and probably LDFLAGS in / usr / X 11 / lib`) to make the installation work. Now, with easy_install and pip, I am not 100% sure how to do this. Try for example
CFLAGS=-I/usr/X11/include LDFLAGS=-L/usr/X11/lib easy_install matplotlib
Or just download the matplotlib source, configure setup.py and create it yourself.
source share