Difference between revisions of "Building CDAT on Mac"

From VistrailsWiki
Jump to navigation Jump to search
Line 22: Line 22:


When running vistrails with cdat package, you'll have to run vistrails from an X11 terminal.
When running vistrails with cdat package, you'll have to run vistrails from an X11 terminal.
'''Setup your user cdat package, and run vistrails. Warning! this will overwrite any previous startup.py file you have in .vistrails'''
* Download the [http://www.sci.utah.edu/~mjc/cdat-vistrails/cdat_package.tar.gz cdat package]
* 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 xzvf <''download path''>/cdat_package.tar.gz
  $ cd <''path to your vistrails download''>
  $ python vistrails/rev???/vistrails/vistrails.py <''download path''>basic_vt_test.xml

Revision as of 20:44, 26 July 2007

These instructions were tested only on mac intel, with python versions 2.4.3 and 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 cdat form the source code repository
  svn checkout http://www-pcmdi.llnl.gov/svn/repository/cdat/trunk cdat 
  • Download this patch (building NetCDF without Fortran support) or if you have fortran compiler installed, download this other patch and uncompress to the cdat folder.
  • Perform the following commands:
 $ unset PYTHONPATH
 $ cd cdat/exsrc
 $ sudo ./install_script /Library/Frameworks/Python.framework/Versions/2.4
 $ cd ..
 $ sudo python install.py /Library/Frameworks/Python.framework/Versions/2.4
  • Before running vistrails, reset PYTHONPATH variable:
 $ 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.

Setup your user cdat package, and run vistrails. Warning! this will overwrite any previous startup.py file you have in .vistrails

 $ cd ~/.vistrails
 $ tar xzvf <download path>/cdat_package.tar.gz
 $ cd <path to your vistrails download>
 $ python vistrails/rev???/vistrails/vistrails.py <download path>basic_vt_test.xml