trouble installing matplotlib - syslibroot: multiply specified

2010-02-15 Thread katrine
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

Re: trouble installing matplotlib - syslibroot: multiply specified

2010-02-15 Thread katrine
On Feb 15, 12:20 pm, "Alf P. Steinbach"  wrote:
> * katrine:
>
>
>
> > 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?
>
> Don't know if this will help, but I just googled "syslibroot", and it coughed 
> up
> the following discussion:
>
>http://lists.apple.com/archives/unix-porting/2005/Oct/msg3.html>
>
> Quoting from that thread: "Try not setting LDFLAGS.  Passing -isysroot to gcc
> might cause it to pass -isyslibroot to the linker if you're using gcc to 
> link."
>
> Cheers,
>
> - Alf

thanks! I managed to install an egg with easy_install, seems to work,
FINALLY!

thanks for your help,
Katrine
-- 
http://mail.python.org/mailman/listinfo/python-list