VisTrails Home

Mac Intel Instructions

From VisTrailsWiki

Revision as of 09:48, 29 May 2008 by Emanuele (Talk | contribs)
Jump to: navigation, search


Specific instructions for Mac OS X 10.3.9 and later, Intel or PPC


  • Make sure you have xcode installed. If you don't have it, get it here (You'll need a Mac Developer Account)

Install Python

  • We won't use the Python version that comes with Mac OS X. Install the Mac Python version available here.
  • Update your path: using Finder, go to Applications > MacPython 2.5 . There is a script there called Update Shell Profile.command that adds the new Python to your .bash_profile.
  • You can test the installation typing python -V in the shell. You should see Python 2.5.2

Install numpy, scipy and matplotlib

Chris Fonnesbeck created a automator script to install numpy, scipy and matplotlib. The installer for PPC works fine. The automator script for Intel didn't work for me, so I had to do this:


  • setuptools: download, and run it (sudo python; this will download and install the appropriate setuptools egg for your Python version.
  • libpng and libjpeg: Install the universal package available here
  • If you are using Leopard: freetype. You have to install macports. And then do a sudo port install freetype and create a symlink to the installed library:
  sudo ln -s /opt/local/lib/libfreetype.6.dylib /usr/local/lib/
  • Install packages using setuptools (Intel only):
  sudo easy_install
  sudo easy_install
  sudo easy_install
  • PPC: Use the script available here:

Install other python extensions

  • PyXml
    • Uncompress it and inside the uncompressed directory do a sudo python install
  • In order to use the Log feature, you need to install MySQLdb. In order to do that , you need to install MySQL. Get specific version for your system here. Then install MySQLdb
    • Uncompress it and and inside the uncompressed directory do a sudo python install
  • Install ZSI 2.1:
 sudo easy_install

Install VTK CVS version (Skip this step if you won't use VTK)

  • First you'll need CMake: get the latest release here
  • Then you can get vtk: follow the instructions to download the CVS source code on this page
  • (Skip this step if you don't need to run CORIE workflows) Follow these instructions to add CORIE and other needed files to VTK.
  • To compile VTK follow the instructions in the file README.html in the root of VTK directory tree
  • On configuring CMake, make sure that the variables VTK_WRAP_PYTHON, VTK_USE_GUISUPPORT, VTK_USE_DISPLAY, VTK_USE_CARBON are ON and VTK_USE_QVTK, VTK_USE_COCOA, VTK_USE_X are OFF
  • Create a environment variable called PYTHONPATH
    • export PYTHONPATH=<path/to/vtk_build>/Wrapping/Python:<path/to/vtk_build>/bin:.

Install Qt 4.3.4 or above

  • You can get the open source version for MAC here
  • Uncompress the file and inside the uncompressed directory run configure then make and finally sudo make install
  • Add the /usr/local/Trolltech/Qt-4.3.4/bin to the PATH variable

Install SIP

  • Downloads available here.
  • Uncompress the file, and inside the directory, type python Then make and make install

Install PyQt4

  • Get the stable version, available here. (The latest snapshot version is here)
  • Uncompress the file, and inside the directory, type python Then make and make install


If you want to install cdat from source on mac, follow these instructions.

Personal tools