VisTrails Home

Mac Intel Instructions

From VisTrailsWiki

(Difference between revisions)
Jump to: navigation, search
(New page: * 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 ** Mac Intel come...)
 
(41 intermediate revisions not shown)
Line 1: Line 1:
 +
= Specific instructions for Mac OS X 10.5 and later =
 +
== 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://www.python.org/ftp/python/2.4.3/Universal-MacPython-2.4.3-2006-04-07.dmg here]
+
* We won't use the Python version that comes with Mac OS X. Install the 2.7.x Mac Python version available [http://www.python.org/download 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 > Python 2.7 . 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.3
+
* You can test the installation typing ''python -V'' in the shell. You should see Python 2.7.2
-
* Install Python Extensions
+
== Install Qt 4.7.4 ==
-
** 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]
+
* You can get the open source version for MAC [http://get.qt.nokia.com/qt/source/qt-mac-opensource-4.7.4.dmg here]
-
** 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]
+
* Run the installer and it should be all set.
-
** 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)
+
== Install SIP ==
-
** First you'll need CMake: get the latest release [http://www.cmake.org/HTML/Download.html here]
+
* Downloads available '''[http://www.riverbankcomputing.com/software/sip/download here]'''.
-
** Then you can get vtk: follow the instructions to download the CVS source code on this [http://www.vtk.org/get-software.php page]
+
* Uncompress the file, and inside the directory, type '''python configure.py'''. Then '''make''' and '''make install'''
-
** Before compiling VTK, add CORIE and other needed files to VTK. Instructions [ExtraVTKFiles here].
+
-
** 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
+
-
** It is recommended to create a environment variable called PYTHONPATH
+
-
*** export PYTHONPATH=''<path/to/vtk_build>''/Wrapping/Python:''<path/to/vtk_build>''/bin:.
+
-
* Install Qt 4.2.0 or above
+
== Install PyQt4 ==
-
** You can get the open source version for MAC [http://www.trolltech.com/download/opensource.html here]
+
* Downloads available '''[http://www.riverbankcomputing.com/software/pyqt/download here]'''.
-
** Uncompress the file and inside the uncompressed directory run '''configure''' then '''make''' and finally '''sudo make install'''
+
* Uncompress the file, and inside the directory, type '''python configure.py'''. Then '''make''' and '''make install'''
-
** Add the '''usr/local/Trolltech/Qt-4.1.4/bin''' to the PATH variable
+
-
* Install GraphViz
+
== Install numpy, scipy and matplotlib ==
-
** There are Mac OS X builds of nightly snapshots [http://www.ryandesign.com/graphviz/ here]
+
-
* Install SIP
+
-
** 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 PyQt4
+
* Download and install the Unversal binary packages :
-
** 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])
+
[http://sourceforge.net/projects/numpy/files/NumPy/ numpy]
-
** Uncompress the file, and inside the directory, type '''python configure.py'''. Then '''make''' and '''make install'''
+
[http://sourceforge.net/projects/scipy/files/scipy/ scipy]
 +
[http://sourceforge.net/projects/matplotlib/files/matplotlib/ matplotlib]
 +
 
 +
== Install other python extensions ==
 +
* In order to load vistrails files from a database, you need to install MySQLdb.
 +
** Install MySQL. Get specific version for your system [http://dev.mysql.com/downloads/mysql/5.0.html#macosx-dmg here]. After installing it, make sure '''/usr/local/mysql/bin''' is in your PATH.
 +
** Install [http://sourceforge.net/projects/mysql-python/files/mysql-python/1.2.3/MySQL-python-1.2.3.tar.gz/download MySQLdb]. Uncompress it and and inside the uncompressed directory do a '''sudo python setup.py install'''
 +
* Install suds from https://fedorahosted.org/suds/
 +
 
 +
== Install VTK (Skip this step if you won't use VTK) ==
 +
* First you'll need CMake: get the latest release [http://www.cmake.org/HTML/Download.html here]
 +
* Then you can get vtk: follow the instructions to download the 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_COCOA are ON and VTK_USE_QVTK, VTK_USE_CARBON, VTK_USE_X are OFF
 +
* run make and sudo make install

Current revision as of 08:33, 16 October 2013

Contents

Specific instructions for Mac OS X 10.5 and later

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 2.7.x Mac Python version available here.
  • Update your path: using Finder, go to Applications > Python 2.7 . 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.7.2

Install Qt 4.7.4

  • You can get the open source version for MAC here
  • Run the installer and it should be all set.

Install SIP

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

Install PyQt4

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

Install numpy, scipy and matplotlib

  • Download and install the Unversal binary packages :
numpy
scipy
matplotlib

Install other python extensions

  • In order to load vistrails files from a database, you need to install MySQLdb.
    • Install MySQL. Get specific version for your system here. After installing it, make sure /usr/local/mysql/bin is in your PATH.
    • Install MySQLdb. Uncompress it and and inside the uncompressed directory do a sudo python setup.py install
  • Install suds from https://fedorahosted.org/suds/

Install VTK (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 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_COCOA are ON and VTK_USE_QVTK, VTK_USE_CARBON, VTK_USE_X are OFF
  • run make and sudo make install
Personal tools