hello i try to install matplotlib on osx 10.6 , i have also installed freetype libpng and numpy but i get this error: BUILDING MATPLOTLIB matplotlib: 1.1.0 python: 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc. build 5646)] platform: darwin
REQUIRED DEPENDENCIES numpy: 1.2.1 freetype2: found, but unknown version (no pkg-config) * WARNING: Could not find 'freetype2' headers in any * of '.', './freetype2'. OPTIONAL BACKEND DEPENDENCIES libpng: found, but unknown version (no pkg-config) * Could not find 'libpng' headers in any of '.' Tkinter: Tkinter: 67083, 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: Qt: 4.7.0, PyQt4: 4.8.2 Cairo: no OPTIONAL DATE/TIMEZONE DEPENDENCIES datetime: present, version unknown dateutil: present, version unknown 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 build running build_py copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.macosx-10.6- universal-2.6/matplotlib/mpl-data copying lib/matplotlib/mpl-data/matplotlib.conf -> build/ lib.macosx-10.6-universal-2.6/matplotlib/mpl-data running build_ext building 'matplotlib.ft2font' extension gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv - Os -Wall -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe - DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/System/ Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/ numpy/core/include -I. -I/System/Library/Frameworks/Python.framework/ Versions/2.6/Extras/lib/python/numpy/core/include/freetype2 -I./ freetype2 -I/System/Library/Frameworks/Python.framework/Versions/2.6/ include/python2.6 -c src/ft2font.cpp -o build/temp.macosx-10.6- universal-2.6/src/ft2font.o In file included from src/ft2font.h:16, from src/ft2font.cpp:3: /usr/local/include/ft2build.h:56:38: error: freetype/config/ ftheader.h: No such file or directory In file included from src/ft2font.cpp:3: src/ft2font.h:17:10: error: #include expects "FILENAME" or <FILENAME> src/ft2font.h:18:10: error: #include expects "FILENAME" or <FILENAME> src/ft2font.h:19:10: error: #include expects "FILENAME" or <FILENAME> src/ft2font.h:20:10: error: #include expects "FILENAME" or <FILENAME> src/ft2font.h:21:10: error: #include expects "FILENAME" or <FILENAME> In file included from src/ft2font.cpp:3: src/ft2font.h:35: error: ‘FT_Bitmap’ has not been declared src/ft2font.h:35: error: ‘FT_Int’ has not been declared src/ft2font.h:35: error: ‘FT_Int’ has not been declared src/ft2font.h:91: error: expected ‘,’ or ‘...’ before ‘&’ token src/ft2font.h:91: error: ISO C++ forbids declaration of ‘FT_Face’ with no type src/ft2font.h:138: error: ‘FT_Face’ does not name a type src/ft2font.h:139: error: ‘FT_Matrix’ does not name a type src/ft2font.h:140: error: ‘FT_Vector’ does not name a type src/ft2font.h:141: error: ‘FT_Error’ does not name a type src/ft2font.h:142: error: ‘FT_Glyph’ was not declared in this scope src/ft2font.h:142: error: template argument 1 is invalid src/ft2font.h:142: error: template argument 2 is invalid src/ft2font.h:143: error: ‘FT_Vector’ was not declared in this scope src/ft2font.h:143: error: template argument 1 is invalid src/ft2font.h:143: error: template argument 2 is invalid src/ft2font.h:149: error: ‘FT_BBox’ does not name a type src/ft2font.cpp:51: error: ‘FT_Library’ does not name a type src/ft2font.cpp:114: error: variable or field ‘draw_bitmap’ declared void src/ft2font.cpp:114: error: ‘FT_Bitmap’ was not declared in this scope src/ft2font.cpp:114: error: ‘bitmap’ was not declared in this scope src/ft2font.cpp:115: error: ‘FT_Int’ was not declared in this scope src/ft2font.cpp:116: error: ‘FT_Int’ was not declared in this scope /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/ python/numpy/core/include/numpy/__multiarray_api.h:958: warning: ‘int _import_array()’ defined but not used In file included from src/ft2font.h:16, from src/ft2font.cpp:3: /usr/local/include/ft2build.h:56:38: error: freetype/config/ ftheader.h: No such file or directory In file included from src/ft2font.cpp:3: src/ft2font.h:17:10: error: #include expects "FILENAME" or <FILENAME> src/ft2font.h:18:10: error: #include expects "FILENAME" or <FILENAME> src/ft2font.h:19:10: error: #include expects "FILENAME" or <FILENAME> src/ft2font.h:20:10: error: #include expects "FILENAME" or <FILENAME> src/ft2font.h:21:10: error: #include expects "FILENAME" or <FILENAME> In file included from src/ft2font.cpp:3: src/ft2font.h:35: error: ‘FT_Bitmap’ has not been declared src/ft2font.h:35: error: ‘FT_Int’ has not been declared src/ft2font.h:35: error: ‘FT_Int’ has not been declared src/ft2font.h:91: error: expected ‘,’ or ‘...’ before ‘&’ token src/ft2font.h:91: error: ISO C++ forbids declaration of ‘FT_Face’ with no type src/ft2font.h:138: error: ‘FT_Face’ does not name a type src/ft2font.h:139: error: ‘FT_Matrix’ does not name a type src/ft2font.h:140: error: ‘FT_Vector’ does not name a type src/ft2font.h:141: error: ‘FT_Error’ does not name a type src/ft2font.h:142: error: ‘FT_Glyph’ was not declared in this scope src/ft2font.h:142: error: template argument 1 is invalid src/ft2font.h:142: error: template argument 2 is invalid src/ft2font.h:143: error: ‘FT_Vector’ was not declared in this scope src/ft2font.h:143: error: template argument 1 is invalid src/ft2font.h:143: error: template argument 2 is invalid src/ft2font.h:149: error: ‘FT_BBox’ does not name a type src/ft2font.cpp:51: error: ‘FT_Library’ does not name a type src/ft2font.cpp:114: error: variable or field ‘draw_bitmap’ declared void src/ft2font.cpp:114: error: ‘FT_Bitmap’ was not declared in this scope src/ft2font.cpp:114: error: ‘bitmap’ was not declared in this scope src/ft2font.cpp:115: error: ‘FT_Int’ was not declared in this scope src/ft2font.cpp:116: error: ‘FT_Int’ was not declared in this scope /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/ python/numpy/core/include/numpy/__multiarray_api.h:958: warning: ‘int _import_array()’ defined but not used In file included from src/ft2font.h:16, from src/ft2font.cpp:3: /usr/local/include/ft2build.h:56:38: error: freetype/config/ ftheader.h: No such file or directory In file included from src/ft2font.cpp:3: src/ft2font.h:17:10: error: #include expects "FILENAME" or <FILENAME> src/ft2font.h:18:10: error: #include expects "FILENAME" or <FILENAME> src/ft2font.h:19:10: error: #include expects "FILENAME" or <FILENAME> src/ft2font.h:20:10: error: #include expects "FILENAME" or <FILENAME> src/ft2font.h:21:10: error: #include expects "FILENAME" or <FILENAME> In file included from src/ft2font.cpp:3: src/ft2font.h:35: error: ‘FT_Bitmap’ has not been declared src/ft2font.h:35: error: ‘FT_Int’ has not been declared src/ft2font.h:35: error: ‘FT_Int’ has not been declared src/ft2font.h:91: error: expected ‘,’ or ‘...’ before ‘&’ token src/ft2font.h:91: error: ISO C++ forbids declaration of ‘FT_Face’ with no type src/ft2font.h:138: error: ‘FT_Face’ does not name a type src/ft2font.h:139: error: ‘FT_Matrix’ does not name a type src/ft2font.h:140: error: ‘FT_Vector’ does not name a type src/ft2font.h:141: error: ‘FT_Error’ does not name a type src/ft2font.h:142: error: ‘FT_Glyph’ was not declared in this scope src/ft2font.h:142: error: template argument 1 is invalid src/ft2font.h:142: error: template argument 2 is invalid src/ft2font.h:143: error: ‘FT_Vector’ was not declared in this scope src/ft2font.h:143: error: template argument 1 is invalid src/ft2font.h:143: error: template argument 2 is invalid src/ft2font.h:149: error: ‘FT_BBox’ does not name a type src/ft2font.cpp:51: error: ‘FT_Library’ does not name a type src/ft2font.cpp:114: error: variable or field ‘draw_bitmap’ declared void src/ft2font.cpp:114: error: ‘FT_Bitmap’ was not declared in this scope src/ft2font.cpp:114: error: ‘bitmap’ was not declared in this scope src/ft2font.cpp:115: error: ‘FT_Int’ was not declared in this scope src/ft2font.cpp:116: error: ‘FT_Int’ was not declared in this scope /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/ python/numpy/core/include/numpy/__multiarray_api.h:958: warning: ‘int _import_array()’ defined but not used lipo: can't open input file: /var/folders/wA/wAdFPXZ7FC0P4R1RaKSw3k++ +TI/-Tmp-//ccFESr3g.out (No such file or directory) error: command 'gcc-4.2' failed with exit status 1 Please help me -- http://mail.python.org/mailman/listinfo/python-list