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: 
After many attempts, I solved this problem compiling the PIL without freetype support. To do that, I simply unlinked from my $PATH using `brew unlink freetype` and then, `pip install PIL==1.1.7`.
I'm using Arch Linux and had this issue. In my case had to manually download and unpack the zip file from <https://pypi.python.org/pypi/Pillow/2.2.1#downloads> . I then edited the file `_imagingft.c` to change the include path from `freetype/fterrors.h` to `fterrors.h` as there was no `freetype` subdirectory of `/usr/include/freetype2` where `fterrors.h` was located. Finally `python setup.py install` worked fine.

Edit: I should mention this was the solution for installing Pillow, not PIL, but Pillow is just a fork of PIL and it may still be applicable to others with this issue.