trouble installing matplotlib - syslibroot: multiply specified

katrine katrinewhiteson at gmail.com
Mon Feb 15 11:32:36 CET 2010


Hi,

Hope you guys don't mind a question about building matplotlib from a
biologist who wants to learn how to use python.

I am trying to install matplotlib on my mac with OS X 10.4.11, using
python 2.6.4 and Xcode 2.2.1. I have had a few fights with freetype
and Tkinter, and I think I've got those worked out. I have configured
and installed numpy, freetype, zlib, and libpng. But I am still
getting an error about multiply specified syslibroot  - does this make
sense to anyone? Maybe I need to change the PATH somehow? Or maybe
Xcode is not installed properly? (I am using the make.osx provided
with matplotlib, and I am including the top of the file as I am
running it here:

# build mpl into a local install dir with
PREFIX=/usr/local

MPLVERSION=0.99.1.1
PYVERSION=2.6
PYTHON=python${PYVERSION}
ZLIBVERSION=1.2.3
PNGVERSION=1.2.33
FREETYPEVERSION=2.3.7
MACOSX_DEPLOYMENT_TARGET=10.4

## You shouldn't need to configure past this point


CFLAGS="-arch i386 -arch ppc -I${PREFIX}/include  -isysroot /Developer/
SDKs/MacOSX10.4u.sdk"
LDFLAGS="-arch i386 -arch ppc -L${PREFIX}/lib -syslibroot,/Developer/
SDKs/MacOSX10.4u.sdk"


----------------------
******************
----------------------

Now here is what happens when I try to make the make.osx:

katrine-whitesons-computer:/Applications/Q/matplotlib-0.99.1.1
katrinewhiteson$ make -f make.osx mpl_build
export MACOSX_DEPLOYMENT_TARGET=10.4 &&\
export CFLAGS="-arch i386 -arch ppc -I/usr/local/include -I/usr/local/
include/freetype2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk" &&\
export LDFLAGS="-arch i386 -arch ppc -L/usr/local/lib -syslibroot,/
Developer/SDKs/MacOSX10.4u.sdk" &&\
python2.6 setup.py build
============================================================================
BUILDING MATPLOTLIB
            matplotlib: 0.99.1.1
                python: 2.6.4 (r264:75821M, Oct 27 2009, 19:48:32)
[GCC
                        4.0.1 (Apple Inc. build 5493)]
              platform: darwin

REQUIRED DEPENDENCIES
                 numpy: 1.3.0
             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: 73770, Tk: 8.4, Tcl: 8.4
              wxPython: no
                        * wxPython not found
                  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: no
                 Cairo: no



OPTIONAL DATE/TIMEZONE DEPENDENCIES
              datetime: present, version unknown
              dateutil: matplotlib will provide
                  pytz: matplotlib will provide
adding pytz

OPTIONAL USETEX DEPENDENCIES
                dvipng: no
           ghostscript: /bin/sh: line 1: gs: command not found
                 latex: no

[Edit setup.cfg to suppress the above messages]
============================================================================
pymods ['pylab']
packages ['matplotlib', 'matplotlib.backends',
'matplotlib.projections', 'mpl_toolkits', 'mpl_toolkits.mplot3d',
'mpl_toolkits.axes_grid', 'matplotlib.sphinxext',
'matplotlib.numerix', 'matplotlib.numerix.mlab',
'matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra',
'matplotlib.numerix.random_array', 'matplotlib.numerix.fft',
'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil/zoneinfo']
running build
running build_py
copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.macosx-10.4-
fat-2.6/matplotlib/mpl-data
copying lib/matplotlib/mpl-data/matplotlib.conf -> build/
lib.macosx-10.4-fat-2.6/matplotlib/mpl-data
running build_ext
building 'matplotlib.ft2font' extension
c++ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -
bundle -undefined dynamic_lookup -arch i386 -arch ppc -L/usr/local/lib
-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -I/
usr/local/include -I/usr/local/include/freetype2 -isysroot /Developer/
SDKs/MacOSX10.4u.sdk build/temp.macosx-10.4-fat-2.6/src/ft2font.o
build/temp.macosx-10.4-fat-2.6/src/mplutils.o build/temp.macosx-10.4-
fat-2.6/CXX/cxx_extensions.o build/temp.macosx-10.4-fat-2.6/CXX/
cxxsupport.o build/temp.macosx-10.4-fat-2.6/CXX/
IndirectPythonInterface.o build/temp.macosx-10.4-fat-2.6/CXX/
cxxextensions.o -lfreetype -lz -lstdc++ -lm -o build/lib.macosx-10.4-
fat-2.6/matplotlib/ft2font.so
powerpc-apple-darwin8-g++-4.0.1: unrecognized option '-syslibroot,/
Developer/SDKs/MacOSX10.4u.sdk'
i686-apple-darwin8-g++-4.0.1: unrecognized option '-syslibroot,/
Developer/SDKs/MacOSX10.4u.sdk'
//usr/bin/ld: -usr/syslibroot: multiply specified
bincollect2: /ld: -syslibroot: multiply specified
ld returned 1 exit statuscollect2:
ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccym1XU1.out (No such file or
directory)
error: command 'c++' failed with exit status 1
make: *** [mpl_build] Error 1
katrine-whitesons-computer:/Applications/Q/matplotlib-0.99.1.1
katrinewhiteson$ gcc -V
gcc: argument to `-V' is missing
katrine-whitesons-computer:/Applications/Q/matplotlib-0.99.1.1
katrinewhiteson$ which gcc
/usr/bin/gcc
katrine-whitesons-computer:/Applications/Q/matplotlib-0.99.1.1
katrinewhiteson$   c f yj ny
-bash: c: command not found
katrine-whitesons-computer:/Applications/Q/matplotlib-0.99.1.1
katrinewhiteson$ k/l
-bash: k/l: No such file or directory



More information about the Python-list mailing list