title: Error while installing matplotlib
body: <p>I've tried using <code>pip install matplotlib</code> and <code>git clone</code> then <code>python setup.py install</code> as described in <a href="http://matplotlib.sourceforge.net/faq/installing_faq.html#how-to-install">the installation faq</a> for Mac OS 10.7. But I get the same error:</p>
  
  <pre><code>[...]
  llvm-gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include -I. -I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include/freetype2 -I./freetype2 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/ft2font.cpp -o build/temp.macosx-10.7-intel-2.7/src/ft2font.o
  cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
  In file included from src/ft2font.cpp:3:
  src/ft2font.h:16:22: error: ft2build.h: No such file or directory
  src/ft2font.h:17:10: error: #include expects "FILENAME" or &lt;FILENAME&gt;
  src/ft2font.h:18:10: error: #include expects "FILENAME" or &lt;FILENAME&gt;
  src/ft2font.h:19:10: error: #include expects "FILENAME" or &lt;FILENAME&gt;
  src/ft2font.h:20:10: error: #include expects "FILENAME" or &lt;FILENAME&gt;
  src/ft2font.h:21:10: error: #include expects "FILENAME" or &lt;FILENAME&gt;
  In file included from src/ft2font.cpp:3:
  src/ft2font.h:34: error: ‘FT_Bitmap’ has not been declared
  src/ft2font.h:34: error: ‘FT_Int’ has not been declared
  src/ft2font.h:34: error: ‘FT_Int’ has not been declared
  src/ft2font.h:86: error: expected ‘,’ or ‘...’ before ‘&amp;’ token
  [...]
  </code></pre>
  
  <p>It seems like I'm missing some package installed in my system? Or there any other better way to install matplotlib?</p>
  
  <p>Thanks!</p>
  
  <p>UPDATE: by googling and search on SO I've found that I might lack the package freetype2, however, if I try to install it by homebrew I get a warning message:</p>
  
  <pre><code>[me @ my mac]$ brew search freetype
  Apple distributes freetype with OS X, you can find it in /usr/X11/lib.
  However not all build scripts look here, so you may need to call ENV.x11
  in your formula's install function.
  </code></pre>