VisTrails Home

Building CDAT on Mac

From VisTrailsWiki

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
-
'''These instructions were tested only on mac intel, with python versions 2.4.3 and 2.5.1'''
+
'''Updated instructions: '''
 +
'''These instructions were tested on mac intel and PPC, both running Leopard, with [http://www.python.org/ftp/python/2.5.1/python-2.5.1-macosx.dmg macPython version 2.5.1]'''
* Requirements
* Requirements
Line 6: Line 7:
* Follow [[Mac_Intel_Instructions| these instructions]] to install vistrails development environment
* Follow [[Mac_Intel_Instructions| these instructions]] to install vistrails development environment
   
   
-
* Download cdat form the source code repository
+
* Download modified cdat from [http://www.vistrails.org/download/download.php?type=OTHER&id=modified-cdat-mac-manu.tar.gz here]. This is a modified version based on the cdat trunk revision 6656.
-
  <nowiki> svn checkout http://www-pcmdi.llnl.gov/svn/repository/cdat/trunk cdat </nowiki>
+
-
* Download [http://www.vistrails.org/download/download.php?id=cdat_patch_no_fortran.tar.gz this patch] (building NetCDF without Fortran support) or if you have fortran compiler installed, download [http://www.vistrails.org/download/download.php?id=cdat_patch.tar.gz this other patch] and uncompress to the cdat folder.
+
* Uncompress the file
 +
  $ tar -xzvf modified-cdat-mac-manu.tar.gz
-
* Perform the following commands:
+
* Supposing you have Python 2.5 installed, perform the following commands:
-
  $ unset PYTHONPATH
+
   $ cd cdat/exsrc
   $ cd cdat/exsrc
-
   $ sudo ./install_script /Library/Frameworks/Python.framework/Versions/2.4
+
   $ sudo ./install_script /Library/Frameworks/Python.framework/Versions/2.5
 +
  $ cd build/Numeric-23.1
 +
  $ sudo python setup.py install
   $ cd ..
   $ cd ..
-
   $ sudo python install.py /Library/Frameworks/Python.framework/Versions/2.4
+
  $ sudo cp -r Pmw /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
 +
  $ unset PYTHONPATH
 +
  $ cd ..
 +
   $ sudo python install.py --force --disable-contrib /Library/Frameworks/Python.framework/Versions/2.5
 +
  $ cd /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
 +
  $ ln -s ../../lib/python2.5/site-packages/numpy/core/include/numpy .
* Before running vistrails, reset PYTHONPATH variable:
* Before running vistrails, reset PYTHONPATH variable:
   $ export PYTHONPATH=<path/to/vtk_build>/Wrapping/Python:<path/to/vtk_build>/bin:.
   $ export PYTHONPATH=<path/to/vtk_build>/Wrapping/Python:<path/to/vtk_build>/bin:.
-
When running vistrails with cdat package, you'll have to run vistrails from an X11 terminal.
+
Test your cdat installation:
-
 
+
  $ python
-
'''Setup your user cdat package, and run vistrails. Warning! this will overwrite any previous startup.py file you have in .vistrails'''
+
  Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04)
 +
  [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
 +
  Type "help", "copyright", "credits" or "license" for more information.
 +
  >>> import vcs
 +
  >>> import cdms
 +
  >>>
-
* Download the [http://www.sci.utah.edu/~mjc/cdat-vistrails/cdat_package.tar.gz cdat package]
+
'''The cdat-vistrails package will be added soon.'''
-
* Download the [http://www.sci.utah.edu/~mjc/cdat-vistrails/basic_vt_test.xml test cdat vistrail]
+
-
* If you have run vistrails, you will have a ~/.vistrails directory, if not then create it.
+
-
  $ cd ~/.vistrails
+
-
  $ tar xvf <''download path''>/cdat_package.tar
+
-
  $ cd <''path to your vistrails download''>
+
-
  $ python vistrails/rev???/vistrails/vistrails.py <''download path''>/basic_vt_test.xml
+

Revision as of 11:12, 4 April 2008

Updated instructions: These instructions were tested on mac intel and PPC, both running Leopard, with macPython version 2.5.1

  • Requirements
    • You will need X11 to run CDAT. If you don't have it, install it from your Mac OS X Install Disc
  • Download modified cdat from here. This is a modified version based on the cdat trunk revision 6656.
  • Uncompress the file
 $ tar -xzvf modified-cdat-mac-manu.tar.gz
  • Supposing you have Python 2.5 installed, perform the following commands:
 $ cd cdat/exsrc
 $ sudo ./install_script /Library/Frameworks/Python.framework/Versions/2.5
 $ cd build/Numeric-23.1
 $ sudo python setup.py install
 $ cd ..
 $ sudo cp -r Pmw /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
 $ unset PYTHONPATH
 $ cd ..
 $ sudo python install.py --force --disable-contrib /Library/Frameworks/Python.framework/Versions/2.5
 $ cd /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
 $ ln -s ../../lib/python2.5/site-packages/numpy/core/include/numpy .
  • Before running vistrails, reset PYTHONPATH variable:
 $ export PYTHONPATH=<path/to/vtk_build>/Wrapping/Python:<path/to/vtk_build>/bin:.

Test your cdat installation:

 $ python
 Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04) 
 [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import vcs
 >>> import cdms
 >>> 

The cdat-vistrails package will be added soon.

Personal tools