wiki:ASAPSourceInstall

Version 28 (modified by Malte Marquarding, 17 years ago) (diff)

--

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.)
  • rpfits Download rpfits
       tar zxvf rpfits.tar.gz; cd rpfits/linux
       make install
    
  • wcslib Download wcslib
       tar zxvf wcslib.tar.gz; cd wcslib
       touch C/*.l
       make install
    
  • casacore (aips++) Download 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

This will install the asap startup script in $PREFIX/bin and the python code on $ASAPPY/asap. To run you private version of asap you will need to set the PYTHONPATH environment variable to $ASAPPY/asap. To simplify your life it is recommended you edit $PREFIX/asap and add the lines (changed appropriately) near the beginning of the script:

  PYTHONPATH='/home/me/python'
  export PYTHONPATH