title: Installing (build) matplotlib in mac osx lion
body: <p>I installed pynum and scipy (on osx Lion with python 2.7), but when I tried to build matplotlib </p>
  
  <pre><code>git clone https://github.com/matplotlib/matplotlib.git
  cd matplotlib
  python setup.py build
  python setup.py install
  </code></pre>
  
  <p>I've got these errors:</p>
  
  <pre><code>/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSTypes.h:242: error: declaration for parameter ‘FMFontDirectoryFilter’ but no such parameter
  src/_macosx.m:5912: error: expected ‘{’ at end of input
  lipo: can't open input file: /var/folders/qw/pr2f7vq91b3c3ngkxrrqplm8zkv09r/T//ccAgEklo.out (No such file or directory)
  error: command 'llvm-gcc-4.2' failed with exit status 1
  </code></pre>
  
  <p>Could somebody please tell me what is the problem?</p>
  
  <p>P.S.
  At first I tried to install it in this way:</p>
  
  <pre><code>pip install -e git+https://github.com/matplotlib/matplotlib#egg=matplotlib-dev
  </code></pre>
  
  <p>but it does not worked for me</p>