Installing Developer CASA

From CARMA
(Difference between revisions)
Jump to: navigation, search
(casacore)
(casacore)
Line 25: Line 25:
 
== casacore ==
 
== casacore ==
  
The code is under SVN control. There are two versions, and two ways to install. First pick the code, depending if you want the stable or active version:
+
The code is under SVN control. There are two versions, and two ways to install. First pick the code, depending if you want the stable version:
 
+
 
   svn co https://svn.cv.nrao.edu/svn/casa/v2/stable/casacore  
 
   svn co https://svn.cv.nrao.edu/svn/casa/v2/stable/casacore  
or
+
or the active version:
 
   https://svn.cv.nrao.edu/svn/casa/casacore/alma-evla/
 
   https://svn.cv.nrao.edu/svn/casa/casacore/alma-evla/
 
   
 
   
 
+
Method-1 uses a GNUMakefile approach, recently developed by Darrell.
Method-1 uses a new GNUMakefile approach:
+
 
* edit GNUmakefile and set DESTDIR to the place you want the libraries & includes to end up (defaults to ./build/). The only oddity to make sure is if ''-I/usr/include/cfitsio'' is a correct directory for the CFITSIO package.
 
* edit GNUmakefile and set DESTDIR to the place you want the libraries & includes to end up (defaults to ./build/). The only oddity to make sure is if ''-I/usr/include/cfitsio'' is a correct directory for the CFITSIO package.
 
* run '''gmake setup'''
 
* run '''gmake setup'''
Line 39: Line 37:
 
this last process will take a while.  Took 45 mins. on my 2GB 2GHz Core2Duo laptop.
 
this last process will take a while.  Took 45 mins. on my 2GB 2GHz Core2Duo laptop.
  
Method-2 uses a python based tool called [http://www.scons.org/ scons].
+
Method-2 uses a python based tool called [http://www.scons.org/ scons]. This is the original version, developed by Malte/Ger.
  
 
== casa (non-core or code) ==
 
== casa (non-core or code) ==

Revision as of 11:19, 12 February 2009

Installing CASA from a users point of view is trivial. Install the correct binary tar ball, add the correct bin/ directory to your $PATH, and type casapy. At UMD we use astromake, so a command like astroload casa will probably do the job. However, the current user release does not (currently) enable you to develop applications. For this a developer release must be installed, from source.

As of this writing (Feb 2009) the original CASA is being split into casacore and the non-code (code) trees, and I will only describe that new setup.

There are a number of packages that casacore (and in particular casa) needs in order to compile. Since some of them collide or are not recent enough with what you have on your linux distro, it is best to install them in a separate /opt/casa/{bin,lib,include} type of tree. Most open source packages will then be installed as follows:

  ./configure --prefix=/opt/casa
  make
  make install

or for python plugins (using casa's version of python) the typical command will be

  python setup.py install

some Java based tools (e.g. ccmtools) are a little different.

Here are some links to help on installing casa/casacore


Some packages you will have to get via the CASA repository. Here are some examples:

  http://www.python.org/ftp/python/2.5.4/Python-2.5.4.tgz
  https://svn.cv.nrao.edu/casa/devel/ipython-0.9.1.bzr.r1152.tar.gz
  https://svn.cv.nrao.edu/casa/devel/modified-ant-contrib.tar.gz


casacore

The code is under SVN control. There are two versions, and two ways to install. First pick the code, depending if you want the stable version:

 svn co https://svn.cv.nrao.edu/svn/casa/v2/stable/casacore 

or the active version:

 https://svn.cv.nrao.edu/svn/casa/casacore/alma-evla/

Method-1 uses a GNUMakefile approach, recently developed by Darrell.

  • edit GNUmakefile and set DESTDIR to the place you want the libraries & includes to end up (defaults to ./build/). The only oddity to make sure is if -I/usr/include/cfitsio is a correct directory for the CFITSIO package.
  • run gmake setup
  • run gmake

this last process will take a while. Took 45 mins. on my 2GB 2GHz Core2Duo laptop.

Method-2 uses a python based tool called scons. This is the original version, developed by Malte/Ger.

casa (non-core or code)

Same deal, SVN, and two versions to download, but the install method is still the old one:

 svn co https://svn.cv.nrao.edu/svn/casa/v2/stable/code

or

 svn co https://svn.cv.nrao.edu/svn/casa/v2/active/code/
Personal tools