I'm embarrassed to ask that I'm having trouble building/installing  
matplotlib on an intel Mac.

The version at http://matplotlib.sourceforge.net/ wants to give me  
an .egg file for my Mac, and I have yet to figure out how to load and  
install .egg files. (How come python is such a mess?)

So I tried to install with darwinports. Darwinports proceeded to  
upgrade my python from 2.4 to 2.5 (thanks!) and then gave me an error  
installing numeric because the fortran compiler wouldn't build or  
something.

So I manually installed numeric (I don't need fortran support) and  
manually downloaded matplotlib to install with setup.py. But I'm  
getting this error:

building 'matplotlib.backends._tkagg' extension
g++ -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g  
-bundle -undefined dynamic_lookup build/temp.macosx-10.3-fat-2.5/src/ 
_tkagg.o build/temp.macosx-10.3-fat-2.5/CXX/cxx_extensions.o build/ 
temp.macosx-10.3-fat-2.5/CXX/cxxsupport.o build/temp.macosx-10.3- 
fat-2.5/CXX/IndirectPythonInterface.o build/temp.macosx-10.3-fat-2.5/ 
CXX/cxxextensions.o -L/usr/local/lib -L/usr/lib -L/usr/local/lib -L/ 
usr/lib -lpng -lz -lstdc++ -lm -lfreetype -lz -lstdc++ -lm -o build/ 
lib.macosx-10.3-fat-2.5/matplotlib/backends/_tkagg.so -framework Tcl - 
framework Tk
/usr/bin/ld: for/usr/bin/ld: for architecture ppc
/usr/bin/ld: can't locate file for: -lpng
collect2: ld returned 1 exit status
architecture i386
/usr/bin/ld: can't locate file for: -lpng
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccl92wxW.out (No such file or  
directory)
error: command 'g++' failed with exit status 1
Computer:/Users/simsong/Desktop/matplotlib-0.90.0 root#


This basically says that it can't build the universal version on my  
mac because I only have intel binaries for libpng, and not universal  
binaries.

I don't need universal binaries; I'm only running on intel.

I'd rather not go down this path, it turns out. It would be a lot  
easier for me just to download binaries.

What I would like to know is:

1. What is the preferred way for installing matplotlib on Mac at this  
point?
2. How do I install an EGG file?

Thanks!



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to