= Installing ASAP and dependencies from source =

 * You need '''scons, flex, bison, g++, g77/gfortran, cfitsio''' to build ASAP. These should be available as system packages (e.g. rpm, deb etc.)
 * You will also need '''ipython, matplotlib, numpy''' to run ASAP

 * '''rpfits'''
  Download [ftp://ftp.atnf.csiro.au/pub/software/rpfits/rpfits.tar.gz rpfits]
{{{
   tar zxvf rpfits.tar.gz; cd rpfits/linux
   make install
}}}

 * '''wcslib'''
  Download [ftp://ftp.atnf.csiro.au/pub/software/wcslib/wcslib.tar.gz wcslib]
{{{
   tar zxvf wcslib.tar.gz; cd wcslib
   touch C/*.l
   make install
}}}

 * '''casacore''' (aips++)
  Download [http://casacore.googlecode.com/files/casacore-0.1.1.tar.bz2 casacore-0.1.1])
{{{
   tar jxvf casacore-0.1.1.tar.bz2; cd casacore-0.1.1
   python setup.py prefix=/usr/local install
}}}
  Patience...

 * ASAP
  (You need to have subversion installed)
{{{
   svn co http://sourcecode.atnf.csiro.au/repos/asap/tags/asap2.2.0
   cd asap2.2.0
}}}

  You need to have the scons package installed (see o/s specific notes)
{{{
   scons mode=release casacoreroot=/usr/local
}}}

  Now it's probably best to get the asap data repository.
{{{
   export ASAPDATA=.
   ./bin/asap_update_data
   unset ASAPDATA
}}}

  Install it to the default location:
{{{
   su
   scons mode=release casacoreroot=/usr/local install
}}}

 * ASAP Data
{{{
   su
   asap_update_data
}}}

Now you can test it by executing:
{{{
   asap
}}}

To make a binary release to help out others with the same operating system, replace 
<identifier> with something identifying your platform, e.g. '''fc5''' for fedora core 5, or '''fc5_x86_64''' for the 64bit version of fc5 and run the following
{{{
scons mode=release casacoreroot=/usr/local makedist=<identifier>
}}}
Then email the rsyulting tarball in the dist subdirectory to mailto:Malte.Marquarding@csiro.au

