On Mon, Oct 4, 2010 at 4:50 PM, Sanjay Kairam <sanjay.kai...@gmail.com> wrote:
> Hi there,
>
> I'm having a problem installing matplotlib, I'm guessing that I am missing
> some dependency, but I am having trouble figuring out what the issue is (I
>...
> REQUIRED DEPENDENCIES
>                  numpy: 1.5.0
>              freetype2: found, but unknown version (no pkg-config)
>                         * WARNING: Could not find 'freetype2' headers in any
>                         * of '.', './freetype2'.
>...
> /usr/include/AvailabilityMacros.h:108:14: warning: #warning Building for
> Intel with Mac OS X Deployment Target < 10.4 is invalid.
> In file included from src/ft2font.cpp:1:
> src/ft2font.h:14:22: error: ft2build.h: No such file or directory
> src/ft2font.h:15:10: error: #include expects "FILENAME" or <FILENAME>
>...

You're missing the freetype2 library, or the build scripts can't find
it. You can install freetype2 using macports (www.macports.org), or if
you've done that already you can tell the build scripts where to find
it by specifying the PKG_CONFIG_PATH.

PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
python setup.py build

Macports installs into /opt/local by default, so that will tell the
build script to look there first.

Back when I installed everything, the default Python build on OS X was
32-bit, so I compiled a 64-bit Python "framework" version myself. That
may have been fixed already, so you may not want/need to do that. If
you do build your own, don't overwrite the /System/ version; put your
custom version into /Library/Frameworks/Python.framework/ and point to
that for your scripts.

hth,
   Justin

------------------------------------------------------------------------------
Virtualization is moving to the mainstream and overtaking non-virtualized
environment for deploying applications. Does it make network security 
easier or more difficult to achieve? Read this whitepaper to separate the 
two and get a better understanding.
http://p.sf.net/sfu/hp-phase2-d2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to