Install error on Mac OS X 10.8 (mountain lion): ft2build.h

Hi,

I’m having trouble installing matplotlib on my Mac OS X mountain lion (10.8).

See my output below. Note two things:

  1. The error is “predicted” by

         freetype2: found, but unknown version (no pkg-config)
    
                    * WARNING: Could not find 'freetype2' headers in any
    
                    * of '/usr/local/include', '/usr/include',
    
                    * '/usr/X11/include', '/usr/local/include',
    
                    * '/usr/include', '.',
    
                    * '/usr/local/include/freetype2',
    
                    * '/usr/include/freetype2',
    
                    * '/usr/X11/include/freetype2',
    
                    * '/usr/local/include/freetype2',
    
                    * '/usr/include/freetype2', './freetype2'.
    

even though I have pkg-config installed via “brew install pkg-config”

  1. For some reason, the installer cannot find “ft2build.h”. To the best of my knowledge, this file is not on my machine:

In file included from src/ft2font.cpp:3:

src/ft2font.h:16:10: fatal error: ‘ft2build.h’ file not found

#include <ft2build.h>

     ^

1 error generated.

I have installed pkg-config via “brew install pkg-config”, and “brew doctor” gives me no issues. I installed matplotlib via the command:

sudo pip install git+https://github.com/matplotlib/matplotlib.git#egg=matplotlib-dev

Does anyone know what might be the issue here? I had no problems on OS X 10.7…

Thanks,

Tim

Here’s the full log message:

Downloading/unpacking matplotlib-dev from git+https://github.com/matplotlib/matplotlib.git

Running setup.py egg_info for package matplotlib-dev

basedirlist is: ['/usr/local/', '/usr', '/usr/X11']
···
============================================================================

BUILDING MATPLOTLIB

            matplotlib: 1.2.x

                python: 2.7.2 (default, Jun 20 2012, 16:23:33)  [GCC 4.2.1

                        Compatible Apple Clang 4.0

                        (tags/Apple/clang-418.0.60)]

              platform: darwin



REQUIRED DEPENDENCIES

                 numpy: 1.6.1

             freetype2: found, but unknown version (no pkg-config)

                        * WARNING: Could not find 'freetype2' headers in any

                        * of '/usr/local/include', '/usr/include',

                        * '/usr/X11/include', '/usr/local/include',

                        * '/usr/include', '.',

                        * '/usr/local/include/freetype2',

                        * '/usr/include/freetype2',

                        * '/usr/X11/include/freetype2',

                        * '/usr/local/include/freetype2',

                        * '/usr/include/freetype2', './freetype2'.



OPTIONAL BACKEND DEPENDENCIES

                libpng: found, but unknown version (no pkg-config)

                        * Could not find 'libpng' headers in any of

                        * '/usr/local/include', '/usr/include',

                        * '/usr/X11/include', '/usr/local/include',

                        * '/usr/include', '.'

               Tkinter: Tkinter: version not identified, Tk: 8.5, Tcl: 8.5

                  Gtk+: no

                        * Building for Gtk+ requires pygtk; you must be able

                        * to "import gtk" in your build/install environment

       Mac OS X native: yes

                    Qt: no

                   Qt4: no

                PySide: no

                 Cairo: no



OPTIONAL DATE/TIMEZONE DEPENDENCIES

              dateutil: 1.5

                  pytz: matplotlib will provide

adding pytz



OPTIONAL USETEX DEPENDENCIES

                dvipng: no

           ghostscript: /bin/sh: gs: command not found

                 latex: no



[Edit setup.cfg to suppress the above messages]

============================================================================

pymods ['pylab']

packages ['matplotlib', 'matplotlib.backends', 'matplotlib.backends.qt4_editor', 'matplotlib.projections', 'matplotlib.testing', 'matplotlib.testing.jpl_units', 'matplotlib.tests', 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid', 'mpl_toolkits.axes_grid1', 'mpl_toolkits.axisartist', 'matplotlib.sphinxext', 'matplotlib.tri', 'matplotlib.delaunay', 'pytz']



warning: no files found matching 'KNOWN_BUGS'

warning: no files found matching 'INTERACTIVE'

warning: no files found matching 'MANIFEST'

warning: no files found matching '__init__.py'

warning: no files found matching 'examples/data/*'

warning: no files found matching 'lib/mpl_toolkits'

warning: no files found matching 'lib/matplotlib/mpl-data/matplotlib.conf'

warning: no files found matching 'lib/matplotlib/mpl-data/matplotlib.conf.template'

warning: no files found matching 'LICENSE*' under directory 'license'

Installing collected packages: matplotlib-dev

Running setup.py install for matplotlib-dev

basedirlist is: ['/usr/local/', '/usr', '/usr/X11']

============================================================================

BUILDING MATPLOTLIB

            matplotlib: 1.2.x

                python: 2.7.2 (default, Jun 20 2012, 16:23:33)  [GCC 4.2.1

                        Compatible Apple Clang 4.0

                        (tags/Apple/clang-418.0.60)]

              platform: darwin



REQUIRED DEPENDENCIES

                 numpy: 1.6.1

             freetype2: found, but unknown version (no pkg-config)

                        * WARNING: Could not find 'freetype2' headers in any

                        * of '/usr/local/include', '/usr/include',

                        * '/usr/X11/include', '/usr/local/include',

                        * '/usr/include', '.',

                        * '/usr/local/include/freetype2',

                        * '/usr/include/freetype2',

                        * '/usr/X11/include/freetype2',

                        * '/usr/local/include/freetype2',

                        * '/usr/include/freetype2', './freetype2'.



OPTIONAL BACKEND DEPENDENCIES

                libpng: found, but unknown version (no pkg-config)

                        * Could not find 'libpng' headers in any of

                        * '/usr/local/include', '/usr/include',

                        * '/usr/X11/include', '/usr/local/include',

                        * '/usr/include', '.'

               Tkinter: Tkinter: version not identified, Tk: 8.5, Tcl: 8.5

                  Gtk+: no

                        * Building for Gtk+ requires pygtk; you must be able

                        * to "import gtk" in your build/install environment

       Mac OS X native: yes

                    Qt: no

                   Qt4: no

                PySide: no

                 Cairo: no



OPTIONAL DATE/TIMEZONE DEPENDENCIES

              dateutil: 1.5

                  pytz: matplotlib will provide

adding pytz



OPTIONAL USETEX DEPENDENCIES

                dvipng: no

           ghostscript: /bin/sh: gs: command not found

                 latex: no



[Edit setup.cfg to suppress the above messages]

============================================================================

pymods ['pylab']

packages ['matplotlib', 'matplotlib.backends', 'matplotlib.backends.qt4_editor', 'matplotlib.projections', 'matplotlib.testing', 'matplotlib.testing.jpl_units', 'matplotlib.tests', 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid', 'mpl_toolkits.axes_grid1', 'mpl_toolkits.axisartist', 'matplotlib.sphinxext', 'matplotlib.tri', 'matplotlib.delaunay', 'pytz']

building 'matplotlib.ft2font' extension

clang -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 -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/usr/local/include -I/usr/include -I/usr/X11/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include -I/usr/local/include -I/usr/include -I. -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I/usr/X11/include/freetype2 -I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include/freetype2 -I/usr/local/include/freetype2 -I/usr/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.8-intel-2.7/src/ft2font.o

clang: warning: argument unused during compilation: '-mno-fused-madd'

In file included from src/ft2font.cpp:3:

src/ft2font.h:16:10: fatal error: 'ft2build.h' file not found

#include <ft2build.h>

         ^

1 error generated.

error: command 'clang' failed with exit status 1

Complete output from command /usr/bin/python -c "import setuptools;__file__='/Users/duly/build/matplotlib-dev/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-EQWF8R-record/install-record.txt:

basedirlist is: ['/usr/local/', '/usr', '/usr/X11']

============================================================================

BUILDING MATPLOTLIB

        matplotlib: 1.2.x

            python: 2.7.2 (default, Jun 20 2012, 16:23:33)  [GCC 4.2.1

                    Compatible Apple Clang 4.0

                    (tags/Apple/clang-418.0.60)]

          platform: darwin

REQUIRED DEPENDENCIES

             numpy: 1.6.1

         freetype2: found, but unknown version (no pkg-config)

                    * WARNING: Could not find 'freetype2' headers in any

                    * of '/usr/local/include', '/usr/include',

                    * '/usr/X11/include', '/usr/local/include',

                    * '/usr/include', '.',

                    * '/usr/local/include/freetype2',

                    * '/usr/include/freetype2',

                    * '/usr/X11/include/freetype2',

                    * '/usr/local/include/freetype2',

                    * '/usr/include/freetype2', './freetype2'.

OPTIONAL BACKEND DEPENDENCIES

            libpng: found, but unknown version (no pkg-config)

                    * Could not find 'libpng' headers in any of

                    * '/usr/local/include', '/usr/include',

                    * '/usr/X11/include', '/usr/local/include',

                    * '/usr/include', '.'

           Tkinter: Tkinter: version not identified, Tk: 8.5, Tcl: 8.5

              Gtk+: no

                    * Building for Gtk+ requires pygtk; you must be able

                    * to "import gtk" in your build/install environment

   Mac OS X native: yes

                Qt: no

               Qt4: no

            PySide: no

             Cairo: no

OPTIONAL DATE/TIMEZONE DEPENDENCIES

          dateutil: 1.5

              pytz: matplotlib will provide

adding pytz

OPTIONAL USETEX DEPENDENCIES

            dvipng: no

       ghostscript: /bin/sh: gs: command not found

             latex: no

[Edit setup.cfg to suppress the above messages]

============================================================================

pymods [‘pylab’]

packages [‘matplotlib’, ‘matplotlib.backends’, ‘matplotlib.backends.qt4_editor’, ‘matplotlib.projections’, ‘matplotlib.testing’, ‘matplotlib.testing.jpl_units’, ‘matplotlib.tests’, ‘mpl_toolkits’, ‘mpl_toolkits.mplot3d’, ‘mpl_toolkits.axes_grid’, ‘mpl_toolkits.axes_grid1’, ‘mpl_toolkits.axisartist’, ‘matplotlib.sphinxext’, ‘matplotlib.tri’, ‘matplotlib.delaunay’, ‘pytz’]

running install

running build

running build_py

copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.macosx-10.8-intel-2.7/matplotlib/mpl-data

running build_ext

building ‘matplotlib.ft2font’ extension

clang -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 -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/usr/local/include -I/usr/include -I/usr/X11/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include -I/usr/local/include -I/usr/include -I. -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I/usr/X11/include/freetype2 -I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include/freetype2 -I/usr/local/include/freetype2 -I/usr/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.8-intel-2.7/src/ft2font.o

clang: warning: argument unused during compilation: ‘-mno-fused-madd’

In file included from src/ft2font.cpp:3:

src/ft2font.h:16:10: fatal error: ‘ft2build.h’ file not found

#include <ft2build.h>

     ^

1 error generated.

error: command ‘clang’ failed with exit status 1


Command /usr/bin/python -c “import setuptools;file=’/Users/duly/build/matplotlib-dev/setup.py’;exec(compile(open(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” install --single-version-externally-managed --record /tmp/pip-EQWF8R-record/install-record.txt failed with error code 1 in /Users/duly/build/matplotlib-dev

Storing complete log in /Users/duly/Library/Logs/pip.log

Hi,

It turns out I was missing two packages: freetype and libpng. These could be downloaded as

brew install freetype

brew install libpng

I thought I had done this… I may have re-installed pkg-config via brew as well.

I’m not sure why I was unable to google this…

After making these changes I had no problem installing the development version of matplotlib.

Thanks,

Tim

···

On Sun, Aug 26, 2012 at 5:41 PM, Timothy Duly <timduly4@…287…> wrote:

Hi,

I’m having trouble installing matplotlib on my Mac OS X mountain lion (10.8).

See my output below. Note two things:

  1. The error is “predicted” by
         freetype2: found, but unknown version (no pkg-config)
                    * WARNING: Could not find 'freetype2' headers in any
                    * of '/usr/local/include', '/usr/include',
                    * '/usr/X11/include', '/usr/local/include',
                    * '/usr/include', '.',
                    * '/usr/local/include/freetype2',
                    * '/usr/include/freetype2',
                    * '/usr/X11/include/freetype2',
                    * '/usr/local/include/freetype2',
                    * '/usr/include/freetype2', './freetype2'.

even though I have pkg-config installed via “brew install pkg-config”

  1. For some reason, the installer cannot find “ft2build.h”. To the best of my knowledge, this file is not on my machine:

In file included from src/ft2font.cpp:3:

src/ft2font.h:16:10: fatal error: ‘ft2build.h’ file not found

#include <ft2build.h>

     ^

1 error generated.

I have installed pkg-config via “brew install pkg-config”, and “brew doctor” gives me no issues. I installed matplotlib via the command:

sudo pip install git+https://github.com/matplotlib/matplotlib.git#egg=matplotlib-dev

Does anyone know what might be the issue here? I had no problems on OS X 10.7…

Thanks,

Tim

Here’s the full log message:

Downloading/unpacking matplotlib-dev from git+https://github.com/matplotlib/matplotlib.git

Running setup.py egg_info for package matplotlib-dev

basedirlist is: ['/usr/local/', '/usr', '/usr/X11']
============================================================================
BUILDING MATPLOTLIB
            matplotlib: 1.2.x
                python: 2.7.2 (default, Jun 20 2012, 16:23:33)  [GCC 4.2.1
                        Compatible Apple Clang 4.0
                        (tags/Apple/clang-418.0.60)]
              platform: darwin
REQUIRED DEPENDENCIES
                 numpy: 1.6.1
             freetype2: found, but unknown version (no pkg-config)
                        * WARNING: Could not find 'freetype2' headers in any
                        * of '/usr/local/include', '/usr/include',
                        * '/usr/X11/include', '/usr/local/include',
                        * '/usr/include', '.',
                        * '/usr/local/include/freetype2',
                        * '/usr/include/freetype2',
                        * '/usr/X11/include/freetype2',
                        * '/usr/local/include/freetype2',
                        * '/usr/include/freetype2', './freetype2'.
OPTIONAL BACKEND DEPENDENCIES
                libpng: found, but unknown version (no pkg-config)
                        * Could not find 'libpng' headers in any of
                        * '/usr/local/include', '/usr/include',
                        * '/usr/X11/include', '/usr/local/include',
                        * '/usr/include', '.'
               Tkinter: Tkinter: version not identified, Tk: 8.5, Tcl: 8.5
                  Gtk+: no
                        * Building for Gtk+ requires pygtk; you must be able
                        * to "import gtk" in your build/install environment
       Mac OS X native: yes
                    Qt: no
                   Qt4: no
                PySide: no
                 Cairo: no
OPTIONAL DATE/TIMEZONE DEPENDENCIES
              dateutil: 1.5
                  pytz: matplotlib will provide
adding pytz
OPTIONAL USETEX DEPENDENCIES
                dvipng: no
           ghostscript: /bin/sh: gs: command not found
                 latex: no
[Edit setup.cfg to suppress the above messages]
============================================================================
pymods ['pylab']
packages ['matplotlib', 'matplotlib.backends', 'matplotlib.backends.qt4_editor', 'matplotlib.projections', 'matplotlib.testing', 'matplotlib.testing.jpl_units', 'matplotlib.tests', 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid', 'mpl_toolkits.axes_grid1', 'mpl_toolkits.axisartist', 'matplotlib.sphinxext', 'matplotlib.tri', 'matplotlib.delaunay', 'pytz']
warning: no files found matching 'KNOWN_BUGS'
warning: no files found matching 'INTERACTIVE'
warning: no files found matching 'MANIFEST'
warning: no files found matching '__init__.py'
warning: no files found matching 'examples/data/*'
warning: no files found matching 'lib/mpl_toolkits'
warning: no files found matching 'lib/matplotlib/mpl-data/matplotlib.conf'
warning: no files found matching 'lib/matplotlib/mpl-data/matplotlib.conf.template'
warning: no files found matching 'LICENSE*' under directory 'license'

Installing collected packages: matplotlib-dev

Running setup.py install for matplotlib-dev

basedirlist is: ['/usr/local/', '/usr', '/usr/X11']
============================================================================
BUILDING MATPLOTLIB
            matplotlib: 1.2.x
                python: 2.7.2 (default, Jun 20 2012, 16:23:33)  [GCC 4.2.1
                        Compatible Apple Clang 4.0
                        (tags/Apple/clang-418.0.60)]
              platform: darwin
REQUIRED DEPENDENCIES
                 numpy: 1.6.1
             freetype2: found, but unknown version (no pkg-config)
                        * WARNING: Could not find 'freetype2' headers in any
                        * of '/usr/local/include', '/usr/include',
                        * '/usr/X11/include', '/usr/local/include',
                        * '/usr/include', '.',
                        * '/usr/local/include/freetype2',
                        * '/usr/include/freetype2',
                        * '/usr/X11/include/freetype2',
                        * '/usr/local/include/freetype2',
                        * '/usr/include/freetype2', './freetype2'.
OPTIONAL BACKEND DEPENDENCIES
                libpng: found, but unknown version (no pkg-config)
                        * Could not find 'libpng' headers in any of
                        * '/usr/local/include', '/usr/include',
                        * '/usr/X11/include', '/usr/local/include',
                        * '/usr/include', '.'
               Tkinter: Tkinter: version not identified, Tk: 8.5, Tcl: 8.5
                  Gtk+: no
                        * Building for Gtk+ requires pygtk; you must be able
                        * to "import gtk" in your build/install environment
       Mac OS X native: yes
                    Qt: no
                   Qt4: no
                PySide: no
                 Cairo: no
OPTIONAL DATE/TIMEZONE DEPENDENCIES
              dateutil: 1.5
                  pytz: matplotlib will provide
adding pytz
OPTIONAL USETEX DEPENDENCIES
                dvipng: no
           ghostscript: /bin/sh: gs: command not found
                 latex: no
[Edit setup.cfg to suppress the above messages]
============================================================================
pymods ['pylab']
packages ['matplotlib', 'matplotlib.backends', 'matplotlib.backends.qt4_editor', 'matplotlib.projections', 'matplotlib.testing', 'matplotlib.testing.jpl_units', 'matplotlib.tests', 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid', 'mpl_toolkits.axes_grid1', 'mpl_toolkits.axisartist', 'matplotlib.sphinxext', 'matplotlib.tri', 'matplotlib.delaunay', 'pytz']
building 'matplotlib.ft2font' extension
clang -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 -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/usr/local/include -I/usr/include -I/usr/X11/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include -I/usr/local/include -I/usr/include -I. -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I/usr/X11/include/freetype2 -I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include/freetype2 -I/usr/local/include/freetype2 -I/usr/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.8-intel-2.7/src/ft2font.o
clang: warning: argument unused during compilation: '-mno-fused-madd'
In file included from src/ft2font.cpp:3:
src/ft2font.h:16:10: fatal error: 'ft2build.h' file not found
#include <ft2build.h>
         ^
1 error generated.
error: command 'clang' failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools;__file__='/Users/duly/build/matplotlib-dev/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-EQWF8R-record/install-record.txt:
basedirlist is: ['/usr/local/', '/usr', '/usr/X11']

============================================================================

BUILDING MATPLOTLIB

        matplotlib: 1.2.x
            python: 2.7.2 (default, Jun 20 2012, 16:23:33)  [GCC 4.2.1
                    Compatible Apple Clang 4.0
                    (tags/Apple/clang-418.0.60)]
          platform: darwin

REQUIRED DEPENDENCIES

             numpy: 1.6.1
         freetype2: found, but unknown version (no pkg-config)
                    * WARNING: Could not find 'freetype2' headers in any
                    * of '/usr/local/include', '/usr/include',
                    * '/usr/X11/include', '/usr/local/include',
                    * '/usr/include', '.',
                    * '/usr/local/include/freetype2',
                    * '/usr/include/freetype2',
                    * '/usr/X11/include/freetype2',
                    * '/usr/local/include/freetype2',
                    * '/usr/include/freetype2', './freetype2'.

OPTIONAL BACKEND DEPENDENCIES

            libpng: found, but unknown version (no pkg-config)
                    * Could not find 'libpng' headers in any of
                    * '/usr/local/include', '/usr/include',
                    * '/usr/X11/include', '/usr/local/include',
                    * '/usr/include', '.'
           Tkinter: Tkinter: version not identified, Tk: 8.5, Tcl: 8.5
              Gtk+: no
                    * Building for Gtk+ requires pygtk; you must be able
                    * to "import gtk" in your build/install environment
   Mac OS X native: yes
                Qt: no
               Qt4: no
            PySide: no
             Cairo: no

OPTIONAL DATE/TIMEZONE DEPENDENCIES

          dateutil: 1.5
              pytz: matplotlib will provide

adding pytz

OPTIONAL USETEX DEPENDENCIES

            dvipng: no
       ghostscript: /bin/sh: gs: command not found
             latex: no

[Edit setup.cfg to suppress the above messages]

============================================================================

pymods [‘pylab’]

packages [‘matplotlib’, ‘matplotlib.backends’, ‘matplotlib.backends.qt4_editor’, ‘matplotlib.projections’, ‘matplotlib.testing’, ‘matplotlib.testing.jpl_units’, ‘matplotlib.tests’, ‘mpl_toolkits’, ‘mpl_toolkits.mplot3d’, ‘mpl_toolkits.axes_grid’, ‘mpl_toolkits.axes_grid1’, ‘mpl_toolkits.axisartist’, ‘matplotlib.sphinxext’, ‘matplotlib.tri’, ‘matplotlib.delaunay’, ‘pytz’]

running install

running build

running build_py

copying lib/matplotlib/mpl-data/matplotlibrc → build/lib.macosx-10.8-intel-2.7/matplotlib/mpl-data

running build_ext

building ‘matplotlib.ft2font’ extension

clang -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 -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/usr/local/include -I/usr/include -I/usr/X11/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include -I/usr/local/include -I/usr/include -I. -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I/usr/X11/include/freetype2 -I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include/freetype2 -I/usr/local/include/freetype2 -I/usr/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.8-intel-2.7/src/ft2font.o

clang: warning: argument unused during compilation: ‘-mno-fused-madd’

In file included from src/ft2font.cpp:3:

src/ft2font.h:16:10: fatal error: ‘ft2build.h’ file not found

#include <ft2build.h>

     ^

1 error generated.

error: command ‘clang’ failed with exit status 1


Command /usr/bin/python -c “import setuptools;file=‘/Users/duly/build/matplotlib-dev/setup.py’;exec(compile(open(file).read().replace(‘\r\n’, ‘\n’), file, ‘exec’))” install --single-version-externally-managed --record /tmp/pip-EQWF8R-record/install-record.txt failed with error code 1 in /Users/duly/build/matplotlib-dev

Storing complete log in /Users/duly/Library/Logs/pip.log