Question: I want to install PIL on Mavericks using pip but get this error.

```
_imagingft.c:73:10: fatal error: 'freetype/fterrors.h' file not found
#include <freetype/fterrors.h>
         ^
1 error generated.
error: command 'cc' failed with exit status 1

```

My Command Line Tools are installed and up to date and every hint I found didn't help.
How can I get this to compile?

EDIT: I just checked, freetype is also already installed via homebrew

Answer: 
With macports, the solution that worked for me:

```
sudo port install freetype
sudo ln -s /opt/local/include/freetype2 /opt/local/include/freetype

```

And then re-run the PIL build process.
osx yosemite, this worked for me: 

(virtualenv)

```
$ ln -s /opt/local/include/freetype2/ /usr/local/include/freetype2
$ pip install pil==1.1.7 --allow-external pil --allow-unverified pil

```