Difference between revisions of "Mac Intel Instructions"

From VistrailsWiki
Jump to navigation Jump to search
Line 4: Line 4:
   
   
== Install Python ==
== Install Python ==
* 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].  
* We won't use the Python version that comes with Mac OS X. Install the 2.6.x Mac Python version available [http://www.python.org/download 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.
* Update your path: using Finder, go to Applications > Python 2.6 . 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
* You can test the installation typing ''python -V'' in the shell. You should see Python 2.6.5  


== Install numpy, scipy and matplotlib ==
== Install numpy, scipy and matplotlib ==
Line 16: Line 16:


== Install other python extensions ==
== Install other python extensions ==
* [http://downloads.sourceforge.net/pyxml/PyXML-0.8.4.tar.gz?modtime=1101741917&big_mirror=0 PyXml]
** Uncompress it and inside the uncompressed directory do a '''sudo python setup.py install'''
* In order to load vistrails files from a database, 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]
* In order to load vistrails files from a database, 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'''
** Uncompress it and and inside the uncompressed directory do a '''sudo python setup.py install'''
* Install ZSI 2.1:
* Install ZSI 2.1:
** Download [http://downloads.sourceforge.net/pywebsvcs/ZSI-2.1-a1.tar.gz ZSI-2.1-a1.tar.gz], uncompress it and '''sudo python setup.py install'''
** Download [http://www.sci.utah.edu/~emanuele/files/zsi_trunk_1495.tar.gz], uncompress it and '''sudo python setup.py install'''
** Or if you have easy_install installed:
* There are some Web Services examples that require libxml2 and libxslt. Mac OS X Leopard and Snow LEopard come with Python, libxml2 and libxslt installed by default, but there are no bindings for using libxml2 and libxslt from Python. If you have the developer tools installed, it's not that hard to add these.
  sudo easy_install http://superb-east.dl.sourceforge.net/sourceforge/pywebsvcs/ZSI-2.1_a1-py2.5.egg
** Leopard:
* There are some Web Services examples that require libxml2 and libxslt. Mac OS X 10.4 Tiger and Leopard come with Python, libxml2 and libxslt installed by default, but there are no bindings for using libxml2 and libxslt from Python. If you have the developer tools installed, it's not that hard to add these.
*** Compile and install the python module of libxml version 2.6.16 using:
** Compile and install the python module of libxml version 2.6.16 using:
   curl -O ftp://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/libxml2-2.6.16.tar.gz  
   curl -O ftp://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/libxml2-2.6.16.tar.gz  
   tar xvfz libxml2-2.6.16.tar.gz  
   tar xvfz libxml2-2.6.16.tar.gz  
Line 32: Line 29:
   python setup.py install  
   python setup.py install  
   cd ../../  
   cd ../../  
** Compile and install the python module of libxslt version 1.1.12 (on Leopard) using:
 
*** Compile and install the python module of libxslt version 1.1.12 using:
   curl -O ftp://ftp.gnome.org/pub/GNOME/sources/libxslt/1.1/libxslt-1.1.12.tar.gz  
   curl -O ftp://ftp.gnome.org/pub/GNOME/sources/libxslt/1.1/libxslt-1.1.12.tar.gz  
   tar xvfz libxslt-1.1.12.tar.gz  
   tar xvfz libxslt-1.1.12.tar.gz  
   cd libxslt-1.1.12/  
   cd libxslt-1.1.12/  
   ./configure --with-python=/System/Library/Frameworks/Python.framework/Versions/2.3/  
   ./configure --with-python=/System/Library/Frameworks/Python.framework/Versions/2.3/  
Line 44: Line 41:
   cd ../../
   cd ../../


== Install VTK CVS version (Skip this step if you won't use VTK) ==
** Snow Leopard:
* First you'll need CMake: get the latest release [http://www.cmake.org/HTML/Download.html here]
*** Compile and install the python module of libxml version 2.7.3 using:
* Then you can get vtk: follow the instructions to download the CVS source code on this [http://www.vtk.org/get-software.php page]
  curl -O ftp://xmlsoft.org/libxml2/libxml2-2.7.3.tar.gz
* '''(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.  
  tar xvfz libxml2-2.7.3.tar.gz
* To compile VTK follow the instructions in the file ''README.html'' in the root of VTK directory tree
  cd libxml2-2.7.3/python
* 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
  python setup.py build
* Create a environment variable called PYTHONPATH
  python setup.py install
** export PYTHONPATH=''<path/to/vtk_build>''/Wrapping/Python:''<path/to/vtk_build>''/bin:.
  cd ../../
 
*** Compile and install the python module of libxslt version 1.1.24 using:
  curl -O ftp://xmlsoft.org/libxslt/libxslt-1.1.24.tar.gz
  tar xvfz libxslt-1.1.24.tar.gz
  cd libxslt-1.1.24/
  ./configure --with-python=/Library/Frameworks/Python.framework/Versions/2.6/
  make  
  cd python
  cp libx*.py /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
  cp .libs/libxsltmod.so /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/  
  cd ../../


== Install Qt 4.4.3 ==
== Install Qt 4.6.2 ==
* You can get the open source version for MAC [ftp://ftp.qt.nokia.com/qt/source/qt-mac-opensource-src-4.4.3.tar.gz here]
* You can get the open source version for MAC [http://get.qt.nokia.com/qt/source/qt-mac-cocoa-opensource-4.6.2.dmg here]
* Uncompress the file and inside the uncompressed directory run '''configure''' then '''make''' and finally '''sudo make install'''
* Run the installer and it should be all set.
* Add the '''/usr/local/Trolltech/Qt-4.4.3/bin''' to the PATH variable


== Install SIP ==
== Install SIP ==
* Downloads available '''[http://www.riverbankcomputing.com/software/sip/download here]'''.  
* Leopard:
* Uncompress the file, and inside the directory, type '''python configure.py'''. Then '''make''' and '''make install'''
** Downloads available '''[http://www.riverbankcomputing.com/software/sip/download here]'''.  
** Uncompress the file, and inside the directory, type '''python configure.py'''. Then '''make''' and '''make install'''
* Snow Leopard:
** Downloads available '''[http://www.riverbankcomputing.com/software/sip/download here]'''.
** Uncompress the file, and inside the directory, type '''python configure.py --arch i386'''. Then '''make''' and '''make install'''


== Install PyQt4 ==
== Install PyQt4 ==
* Downloads available '''[http://www.riverbankcomputing.com/software/pyqt/download here]'''.  
* Leopard:
* Uncompress the file, and inside the directory, type '''python configure.py'''. Then '''make''' and '''make install'''
** Downloads available '''[http://www.riverbankcomputing.com/software/pyqt/download here]'''.
** Uncompress the file, and inside the directory, type '''python configure.py'''. Then '''make''' and '''sudo make install'''
* Snow Leopard:
** Downloads available '''[http://www.riverbankcomputing.com/software/pyqt/download here]'''.  
** Uncompress the file, and inside the directory, type '''python configure.py --use-arch i386'''. Then '''make''' and '''sudo make install'''
 
== Install VTK version (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

Revision as of 16:43, 27 April 2010

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

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. 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 ZSI 2.1:
    • Download [1], uncompress it and sudo python setup.py install
  • There are some Web Services examples that require libxml2 and libxslt. Mac OS X Leopard and Snow LEopard come with Python, libxml2 and libxslt installed by default, but there are no bindings for using libxml2 and libxslt from Python. If you have the developer tools installed, it's not that hard to add these.
    • Leopard:
      • Compile and install the python module of libxml version 2.6.16 using:
 curl -O ftp://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/libxml2-2.6.16.tar.gz 
 tar xvfz libxml2-2.6.16.tar.gz 
 cd libxml2-2.6.16/python 
 python setup.py build 
 python setup.py install 
 cd ../../ 
      • Compile and install the python module of libxslt version 1.1.12 using:
 curl -O ftp://ftp.gnome.org/pub/GNOME/sources/libxslt/1.1/libxslt-1.1.12.tar.gz 
 tar xvfz libxslt-1.1.12.tar.gz 
 cd libxslt-1.1.12/ 
 ./configure --with-python=/System/Library/Frameworks/Python.framework/Versions/2.3/ 
 make 
 cd python 
 cp libx*.py /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/ 
 cp .libs/libxsltmod.so /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/ 
 cd ../../
    • Snow Leopard:
      • Compile and install the python module of libxml version 2.7.3 using:
 curl -O ftp://xmlsoft.org/libxml2/libxml2-2.7.3.tar.gz
 tar xvfz libxml2-2.7.3.tar.gz 
 cd libxml2-2.7.3/python 
 python setup.py build 
 python setup.py install 
 cd ../../ 
      • Compile and install the python module of libxslt version 1.1.24 using:
 curl -O ftp://xmlsoft.org/libxslt/libxslt-1.1.24.tar.gz 
 tar xvfz libxslt-1.1.24.tar.gz 
 cd libxslt-1.1.24/ 
 ./configure --with-python=/Library/Frameworks/Python.framework/Versions/2.6/ 
 make 
 cd python 
 cp libx*.py /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/ 
 cp .libs/libxsltmod.so /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/ 
 cd ../../

Install Qt 4.6.2

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

Install SIP

  • Leopard:
    • Downloads available here.
    • Uncompress the file, and inside the directory, type python configure.py. Then make and make install
  • Snow Leopard:
    • Downloads available here.
    • Uncompress the file, and inside the directory, type python configure.py --arch i386. Then make and make install

Install PyQt4

  • Leopard:
    • Downloads available here.
    • Uncompress the file, and inside the directory, type python configure.py. Then make and sudo make install
  • Snow Leopard:
    • Downloads available here.
    • Uncompress the file, and inside the directory, type python configure.py --use-arch i386. Then make and sudo make install

Install VTK 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 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