wiki:ASAPSourceInstall

Version 24 (modified by Malte Marquarding, 18 years ago) (diff)

--

Installing ASAP and dependencies from source

  • Rpfits Download rpfits
       tar zxvf rpfits.tar.gz; cd rpfits/linux
       make install
    
  • CASA (aips++) Download casa_asap (or casa_asap2.1)
       tar jxvf casa_asap.tar.bz2; cd casa_asap
       sh configure.sh
            (read README and decide if you need to edit linux/UNKNOWN_SITE/makedefs)
       sh build.sh
    

Depending on whether you use (t)csh

   source aipsinit.csh

or bash

   . aipsinit.sh
  • ASAP (You need to have subversion installed)
       svn co http://sourcecode.atnf.csiro.au/repos/asap/branches/Release2.1 asap2.1
       cd asap2.1
    

You need to have the scons package installed (see o/s specific notes)

   scons

If scons fails with "Checking for casa libraries...no" then you probably forgot to source the aipsinit script. If any other check returns "no" please install the corresponding package on your machine.

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 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