I am unable to install matplot lib on my new laptop. It is an intel based Mac. Stepping throught the install I found that build_py works but build_ext breaks with what looks like a couple of link errors. Any help would be appreciated.
Ian
hostname:~/src/matplotlib-0.87 mennis$ sudo python setup.py build_ext
GTK requires pygtk
GTKAgg requires pygtk
running build_ext
building 'matplotlib.backends._tkagg' extension
gcc options: '-fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fPIC -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes'
compile options: '-I/System/Library/Frameworks/Tcl.framework/Headers -I/System/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders -I/System/Library/Frameworks/Tk.framework/Headers -I/System/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders -I/usr/local/include -I/usr/include -I/sw/include -I. -Isrc -Iswig -Iagg23/include -I. -I/usr/local/include -I/usr/include -I/sw/include -I. -I/System/Library/Frameworks/Tcl.framework/Headers/freetype2 -I/System/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders/freetype2 -I/System/Library/Frameworks/Tk.framework/Headers/freetype2 -I/System/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders/freetype2 -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I/sw/include/freetype2 -I./freetype2 -Isrc/freetype2 -Iswig/freetype2 -Iagg23/include/freetype2 -I./freetype2 -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I/sw/include/freetype2 -I./freetype2 -I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c'
extra options: '-framework Tcl -framework Tk'
c++ -bundle -undefined dynamic_lookup build/temp.darwin-8.5.2-i386-2.4/src/_tkagg.o build/temp.darwin-8.5.2-i386-2.4/CXX/cxx_extensions.o build/temp.darwin-8.5.2-i386-2.4/CXX/cxxsupport.o build/temp.darwin-8.5.2-i386-2.4/CXX/IndirectPythonInterface.o build/temp.darwin-8.5.2-i386-2.4/CXX/cxxextensions.o -L/usr/local/lib -L/usr/lib -L/sw/lib -L/usr/local/lib -L/usr/lib -L/sw/lib -lpng -lz -lstdc++ -lm -lfreetype -lz -lstdc++ -lm -o build/lib.darwin-8.5.2-i386-2.4/matplotlib/backends/_tkagg.so -framework Tcl -framework Tk
/usr/bin/ld: can't locate file for: -lpng
collect2: ld returned 1 exit status
/usr/bin/ld: can't locate file for: -lpng
collect2: ld returned 1 exit status
error: Command "c++ -bundle -undefined dynamic_lookup build/temp.darwin-8.5.2-i386-2.4/src/_tkagg.o build/temp.darwin-8.5.2-i386-2.4/CXX/cxx_extensions.o build/temp.darwin-8.5.2-i386-2.4/CXX/cxxsupport.o build/temp.darwin-8.5.2-i386-2.4/CXX/IndirectPythonInterface.o build/temp.darwin-8.5.2-i386-2.4/CXX/cxxextensions.o -L/usr/local/lib -L/usr/lib -L/sw/lib -L/usr/local/lib -L/usr/lib -L/sw/lib -lpng -lz -lstdc++ -lm -lfreetype -lz -lstdc++ -lm -o build/lib.darwin-8.5.2-i386-2.4/matplotlib/backends/_tkagg.so -framework Tcl -framework Tk" failed with exit status 1
hostname:~/src/matplotlib-0.87 mennis$