Go back to the Blog.  
 
Posted on 2010-02-01, by Tom
Frugal has successfully been run in Mac OS X 10.6 - also known as Snow Leopard.
It is necessary to install one Python package (matplotlib) that is not shipped with Mac OS X by default. Installation can be done in a couple of minutes.
  1. Open Safari and go to http://sourceforge.net/projects/matplotlib/. Click Download Now! to download the tar.gz package.
  2. Go to Applications->Utilities and open the Terminal.
  3. Unpack the matplotlib package by typing the following commands into the Terminal window
    $ cd Downloads
    $ tar xvf matplotlib-0.99.1.2.tar
  4. Open a Finder window and go to Downloads/matplotlib-0.99.1.1. Double-click on make.osx and open it in the TextEdit application.
    Change the following lines
    PYVERSION=2.5
    MACOSX_DEPLOYMENT_TARGET=10.6
    In CFLAGS and LDFLAGS update the sdk file name to MacOSX10.6.sdk
    Scroll down to the bottom and update the hdiutil line with macosx10.6.mpkg
    Save the file and close TextEdit.
  5. Install matplotlib by
    $ cd matplotlib-0.99.1.1
    $ sudo PREFIX=/System/Library/Frameworks/Python.framework/Versions/2.5 make -f make.osx fetch deps mpl_install
Advanced users have noticed that matplotlib was installed for Python 2.5 above, while Python 2.6 is the default Python version in Mac OS X. I chose that path as Python 2.6 runs in 64-bits mode while the Python package wx (required by Frugal) shipped with Mac OS X is only compiled for 32-bits. It is now required to run Frugal with Python 2.5.
Run Frugal from the Terminal by typing the command
$ python2.5 frugal/src/frugal.py
Last modified on 2010-02-02 at 17:02:59

This site is powered by ics-blog.