Difference between revisions of "Mac Intel Instructions"

From VistrailsWiki
Jump to navigation Jump to search
 
(24 intermediate revisions by one other user not shown)
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.5 and later =
== XCode ==
== 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 ==
* 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.7.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.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.5.2
* You can test the installation typing ''python -V'' in the shell. You should see Python 2.7.2


== Install numpy, scipy and matplotlib ==
== Install Qt 4.7.4 ==
[http://macinscience.org/?page_id=6 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:
* You can get the open source version for MAC [http://get.qt.nokia.com/qt/source/qt-mac-opensource-4.7.4.dmg here]
 
* Run the installer and it should be all set.
Requirements
* 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.
* libpng and libjpeg: Install the universal package available [http://ethan.tira-thompson.com/Mac%20OS%20X%20Ports.html here]
* If you are using Leopard: 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:
  sudo ln -s /opt/local/lib/libfreetype.6.dylib /usr/local/lib/
* Install packages using setuptools (Intel only):
  sudo easy_install http://drop.io/download/48bf0911/299ea74c26b3c8a44ecc48d4eb89ac56c63c79dd/fde052a0-1968-012b-319e-0012799407ec/c9909ec0-5465-012b-113a-fabb5e961d05/numpy-1.2.0.dev5677-py2.5-macosx-10.3-i386.egg
  sudo easy_install http://drop.io/download/48bf0911/cf3d6fb2df21c605e0498ad8422ec310a7fd7572/fde052a0-1968-012b-319e-0012799407ec/8ca53fb0-5465-012b-3012-f38b3bbc669a/scipy-0.7.0.dev4645-py2.5-macosx-10.3-i386.egg
  sudo easy_install http://drop.io/download/48bf0911/cf3d6fb2df21c605e0498ad8422ec310a7fd7572/fde052a0-1968-012b-319e-0012799407ec/8ca53fb0-5465-012b-3012-f38b3bbc669a/scipy-0.7.0.dev4645-py2.5-macosx-10.3-i386.egg
 
* PPC: Use the script available [http://macinscience.org/?page_id=6 here]:
 
== 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 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 ZSI 2.1:
  sudo easy_install http://superb-east.dl.sourceforge.net/sourceforge/pywebsvcs/ZSI-2.1_a1-py2.5.egg
 
== Install VTK CVS 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 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 Qt 4.3.4 or above ==
* You can get the open source version for MAC [http://trolltech.com/developer/downloads/qt/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 ==
== Install SIP ==
Line 53: Line 20:
* Uncompress the file, and inside the directory, type '''python configure.py'''. Then '''make''' and '''make install'''
* Uncompress the file, and inside the directory, type '''python configure.py'''. Then '''make''' and '''make install'''


== CDAT ==
== Install numpy, scipy and matplotlib ==
If you want to install cdat from source on mac, follow [[building CDAT on Mac|these instructions]].
 
* Download and install the Unversal binary packages :
[http://sourceforge.net/projects/numpy/files/NumPy/ numpy]
[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

Latest revision as of 14:33, 16 October 2013

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