VisTrails Home

Mac Intel Instructions

From VisTrailsWiki

(Difference between revisions)
Jump to: navigation, search
(Updated instructions to work on Python 2.5 and Leopard)
Line 1: Line 1:
-
== Specific instructions for Mac OS X 10.3.9 and later, Intel or PPC ==
+
= Specific instructions for Mac OS X 10.3.9 and later, Intel or PPC =
-
 
+
== XCode ==
* Make sure you have xcode installed. If you don't have it, get it [http://developer.apple.com/tools/xcode/ here] (You'll need a Mac Developer Account)
* Make sure you have xcode installed. If you don't have it, get it [http://developer.apple.com/tools/xcode/ here] (You'll need a Mac Developer Account)
   
   
-
* Install Python
+
== Install Python ==
-
** Mac Intel comes with Python 2.3.5. We need Python 2.4. There is a Universal Binary available [http://pythonmac.org/packages/py24-fat/dmg/python-2.4.4-macosx2006-10-18.dmg here]
+
* We won't use the Python version that comes with Mac OS X. Install the Mac Python version available [http://www.python.org/ftp/python/2.5.2/python-2.5.2-macosx.dmg here].
-
** Maybe your path variable was not updated. Using Finder, go to Applications > MacPython 2.4 . There is a script there called Update Shell Profile.command that adds the new Python to your .bash_profile.
+
* 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.4.4
+
* You can test the installation typing ''python -V'' in the shell. You should see Python 2.5.2
-
* Install Python Extensions
+
== Install numpy, scipy and matplotlib ==
-
** To get memory information on mac, PyXml is needed and a binary package is available [http://pythonmac.org/packages/py24-fat/mpkg/PyXML-0.8.4-py2.4-macosx10.4.mpkg.zip here]
+
[http://trichech.us/?page_id=5 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:
-
** fpconst and SOAPpy are also required for using web services. fpconst is available [http://www.sci.utah.edu/~emanuele/files/fpconst-0.7.2.tar here]. SOAPpy is available [http://sourceforge.net/project/showfiles.php?group_id=26590&package_id=18246 here]
+
-
** In order to use the Log feature, you need to install [http://pythonmac.org/packages/py24-fat/mpkg/MySQL_Python-1.2.1_p2-py2.4-macosx10.4.zip MySQLdb] (also available as a binary package)
+
-
* Install VTK CVS version (Skip this step if you won't use VTK)
+
Requirements
-
** First you'll need CMake: get the latest release [http://www.cmake.org/HTML/Download.html here]
+
* setuptools: download [http://peak.telecommunity.com/dist/ez_setup.py ez_setup.py], and run it ('''sudo python ez_setup.py'''); this will download and install the appropriate setuptools egg for your Python version.
-
** Then you can get vtk: follow the instructions to download the CVS source code on this [http://www.vtk.org/get-software.php page]
+
* libpng and libjpeg: Install the universal package available [http://ethan.tira-thompson.com/Mac%20OS%20X%20Ports.html here]
-
** '''(Skip this step if you don't need to run CORIE workflows)''' Follow [[ExtraVTKFIles|these instructions]] to add CORIE and other needed files to VTK.
+
* freetype. You have to install [http://svn.macports.org/repository/macports/downloads/MacPorts-1.6.0/ macports]. And then do a '''sudo port install freetype''' and create a symlink to the installed library:
-
** To compile VTK follow the instructions in the file ''README.html'' in the root of VTK directory tree
+
  sudo ln -s /opt/local/lib/libfreetype.6.dylib /usr/local/lib/
-
** 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
+
* Install packages using setuptools:
-
** It is recommended to create a environment variable called PYTHONPATH
+
  sudo easy_install http://idisk.mac.com/fonnesbeck-Public/numpy-1.0.5.dev4851-py2.5-macosx-10.5-i386.egg
-
*** export PYTHONPATH=''<path/to/vtk_build>''/Wrapping/Python:''<path/to/vtk_build>''/bin:.
+
  sudo easy_install http://idisk.mac.com/fonnesbeck-Public/scipy-0.7.0.dev3998-py2.5-macosx-10.5-i386.egg
 +
  sudo easy_install http://superb-west.dl.sourceforge.net/sourceforge/matplotlib/matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg 
-
* Install Qt 4.2.0 or above
+
== Install other python extensions ==
-
** You can get the open source version for MAC [http://www.trolltech.com/download/opensource.html here]
+
* [http://downloads.sourceforge.net/pyxml/PyXML-0.8.4.tar.gz?modtime=1101741917&big_mirror=0 PyXml]
-
** Uncompress the file and inside the uncompressed directory run '''configure''' then '''make''' and finally '''sudo make install'''
+
** Uncompress it and inside the uncompressed directory do a '''sudo python setup.py install'''
-
** Add the '''usr/local/Trolltech/Qt-4.2.x/bin''' to the PATH variable
+
* 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 [http://dev.mysql.com/downloads/mysql/5.0.html#macosx-dmg here]. Then install [http://downloads.sourceforge.net/mysql-python/MySQL-python-1.2.2.tar.gz?modtime=1172959928&big_mirror=0 MySQLdb]
 +
** Uncompress it and and inside the uncompressed directory do a '''sudo python setup.py install'''
-
* Install GraphViz
+
== Install VTK CVS version (Skip this step if you won't use VTK) ==
-
** There are Mac OS X builds of nightly snapshots [http://www.ryandesign.com/graphviz/ here]  
+
* First you'll need CMake: get the latest release [http://www.cmake.org/HTML/Download.html here]
-
** Add the '''usr/local/graphviz-''version''/bin''' to the PATH variable
+
* Then you can get vtk: follow the instructions to download the CVS source code on this [http://www.vtk.org/get-software.php page]
 +
* '''(Skip this step if you don't need to run CORIE workflows)''' Follow [[ExtraVTKFIles|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 SIP
+
== Install Qt 4.3.4 or above ==
-
** Get the stable release version available '''[http://www.riverbankcomputing.co.uk/sip/download.php here]'''. (The latest snapshot version is [http://www.riverbankcomputing.com/Downloads/Snapshots/sip4/ here])
+
* You can get the open source version for MAC [http://trolltech.com/developer/downloads/qt/mac here]
-
** Uncompress the file, and inside the directory, type '''python configure.py'''. Then '''make''' and '''make install'''
+
* 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 PyQt4
+
== Install GraphViz ==
-
** Get the stable version, available '''[http://www.riverbankcomputing.co.uk/pyqt/download.php here]'''.  (The latest snapshot version is [http://www.riverbankcomputing.com/Downloads/Snapshots/PyQt4/ here])
+
* For Leopard: Install this [http://www.graphviz.org/pub/graphviz/ARCHIVE/graphviz-2.18.pkg package]
-
** Uncompress the file, and inside the directory, type '''python configure.py'''. Then '''make''' and '''make install'''
+
* Tiger: There are Mac OS X builds of nightly snapshots [http://www.ryandesign.com/graphviz/ here]  
 +
** Add the '''usr/local/graphviz-''version''/bin''' to the PATH variable
-
* Install Numpy
+
== Install SIP ==
-
** Get it [http://pythonmac.org/packages/py24-fat/mpkg/numpy-1.0b5-py2.4-macosx10.4.mpkg.zip here]
+
* Get the stable release version available '''[http://www.riverbankcomputing.co.uk/sip/download.php here]'''. (The latest snapshot version is [http://www.riverbankcomputing.com/Downloads/Snapshots/sip4/ here])
 +
* Uncompress the file, and inside the directory, type '''python configure.py'''. Then '''make''' and '''make install'''
-
* Install Scipy
+
== Install PyQt4 ==
-
** Get it [http://pythonmac.org/packages/py24-fat/mpkg/scipy-0.5.1-py2.4-macosx10.4.mpkg.zip here]
+
* Get the stable version, available '''[http://www.riverbankcomputing.co.uk/pyqt/download.php here]'''.  (The latest snapshot version is [http://www.riverbankcomputing.com/Downloads/Snapshots/PyQt4/ here])
 +
* Uncompress the file, and inside the directory, type '''python configure.py'''. Then '''make''' and '''make install'''
-
* Install Matplotlib
+
== CDAT ==
-
** Get it [http://pythonmac.org/packages/py24-fat/dmg/matplotlib-0.87.7-py2.4-macosx10.4-2006-12-12.dmg here]
+
If you want to install cdat from source on mac, follow [[building CDAT on Mac|these instructions]].
-
* If you want to install cdat from source on mac intel, follow [[building CDAT on Mac|these instructions]].
+

Revision as of 14:56, 7 April 2008

Contents

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

XCode

  • 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:

Requirements

  • setuptools: download ez_setup.py, and run it (sudo python ez_setup.py); this will download and install the appropriate setuptools egg for your Python version.
  • libpng and libjpeg: Install the universal package available here
  • 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:
  sudo easy_install http://idisk.mac.com/fonnesbeck-Public/numpy-1.0.5.dev4851-py2.5-macosx-10.5-i386.egg
  sudo easy_install http://idisk.mac.com/fonnesbeck-Public/scipy-0.7.0.dev3998-py2.5-macosx-10.5-i386.egg
  sudo easy_install http://superb-west.dl.sourceforge.net/sourceforge/matplotlib/matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg  

Install other python extensions

  • PyXml
    • Uncompress it and inside the uncompressed directory do a sudo python setup.py 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 setup.py 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 GraphViz

  • For Leopard: Install this package
  • Tiger: There are Mac OS X builds of nightly snapshots here
    • Add the usr/local/graphviz-version/bin to the PATH variable

Install SIP

  • Get the stable release version available here. (The latest snapshot version is here)
  • Uncompress the file, and inside the directory, type python configure.py. 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 configure.py. Then make and make install

CDAT

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

Personal tools