Installation Problems on Mac OS X

I'm in the process of migrating from Windows to Mac OS X and doing my first round of installations from source code in the process. In trying to install matplotlib I get the following error:

/usr/bin/ld: for architecture i386
/usr/bin/ld: can't locate file for: -lpng
collect2: ld returned 1 exit status
/usr/bin/ld: for architecture ppc
/usr/bin/ld: can't locate file for: -lpng
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccG7JjGi.out (No such file or directory)
/usr/bin/ld: for architecture i386
/usr/bin/ld: can't locate file for: -lpng
collect2: ld returned 1 exit status
/usr/bin/ld: for architecture ppc
/usr/bin/ld: can't locate file for: -lpng
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccG7JjGi.out (No such file or directory)
error: Command "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/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" failed with exit status 1

Can anyone tell this novice Mac installer what this means and how to go about fixing it?

···

--

R. Padraic Springuel
Teaching Assistant
Department of Physics and Astronomy
University of Maine
Bennett 309
Office Hours: Wednesday 2-3pm

Building matplotlib requires linking against libpng and freetype. The
error you posted is just saying that libpng can't be found. Building
matplotlib correctly on osx and windows isn't for the feint of heart.
Have you tried the pre-built osx binaries available for download on
sourceforge?

Charlie

···

On 10/9/06, R. Padraic Springuel <R.Springuel@...1210...> wrote:

I'm in the process of migrating from Windows to Mac OS X and doing my
first round of installations from source code in the process. In trying
to install matplotlib I get the following error:

/usr/bin/ld: for architecture i386
/usr/bin/ld: can't locate file for: -lpng
collect2: ld returned 1 exit status
/usr/bin/ld: for architecture ppc
/usr/bin/ld: can't locate file for: -lpng
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccG7JjGi.out (No such file or
directory)
/usr/bin/ld: for architecture i386
/usr/bin/ld: can't locate file for: -lpng
collect2: ld returned 1 exit status
/usr/bin/ld: for architecture ppc
/usr/bin/ld: can't locate file for: -lpng
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccG7JjGi.out (No such file or
directory)
error: Command "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/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" failed with exit status 1

Can anyone tell this novice Mac installer what this means and how to go
about fixing it?
--

R. Padraic Springuel
Teaching Assistant
Department of Physics and Astronomy
University of Maine
Bennett 309
Office Hours: Wednesday 2-3pm

-------------------------------------------------------------------------
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
matplotlib-users List Signup and Options