On Sat, Apr 19, 2008 at 7:13 PM, Eric Firing <efir...@hawaii.edu> wrote:

>
>
> > 2.12.1) on an OSX machine.  Btw, matplotlib does not build on OSX
> > currently -- a person needs to upgrade gcc first (from 4.0.1 to 4.2).
> > I saw John posted a compiler error (resulting from this problem) on
> > some other list, so it's something to keep in mind.
>
> Yes, my colleague, Jules, and I ran into this yesterday.  Very
> frustrating.  We also ran into some sort of problem involving,
> apparently, a mixture of libraries and/or object modules with and
> without dual ppc/intel code, but from the error messages it was
> impossible for us to track down beyond that.  It might have been obvious
> to an OSX wizard. Jules was trying to follow John's instructions
> carefully.  Numpy went in flawlessly.  Scipy went in OK, we think, but
> the test needed nosetest, and then when that was installed, it failed.
> We gave up on the matplotlib installation.
>

On a new machine without the proper depdendencies, you might want to try
first the makefile in release/osx, which will wget the depenencies, build
them with the right flag, and link them in statically.  There is a README in
that directory with instructions, but here is a crib sheet from the command
history I just executed (which still works on my box)::

    # build the dependencies
    cd release/osx/
    unset PKG_CONFIG_PATH
    make fetch_deps
    cd bdist_mpkg-0.4.3
    sudo python setup.py install
    cd ..
    make dependencies

    # build the mpl sdist
    cd ../..
    python setup.py sdist
    mv dist/matplotlib-0.98.6svn.tar.gz release/osx/

    # set the version number in the Makefile to 0.98.6svn and build the
    # installers
    cd release/osx/
    make installers

On a machine that does have the dependencies properly buily and installed, I
use

 > make build_osx105

with the Makefile that lives alongside setup.py.  This still works for me
with the native gcc 4.0.1 on my 10.5 machine and then you can do a normal
python setup.py install.
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to