= Installing ASAP and dependencies from source = * '''Rpfits''' Download [http://www.atnf.csiro.au/pub/software/rpfits/rpfits.tar.gz rpfits] {{{ tar zxvf rpfits.tar.gz; cd rpfits/linux make install }}} * '''CASA''' (aips++) Download [http://www.atnf.csiro.au/pub/software/asap/casa_asap.tar.bz2 casa_asap] (or [http://www.atnf.csiro.au/pub/software/asap/casa_asap2.1.tar.bz2 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 Download [http://www.atnf.csiro.au/pub/software/asap/asap_src.tar.bz2 asap_src] {{{ tar jxvf asap_src.tar.bz2; cd asap2.0 }}} 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. Install it to the default location: {{{ su scons install }}} * ASAP Data Download [http://www.atnf.csiro.au/pub/software/asap/asap_data.tar.bz2 asap_data] {{{ su asap_update_data }}} Now you can test it by executing: {{{ asap }}} If you not have root access to the machine you are installing on (or do not want to install asap in the default location, then you needs to pass the "prefix" and "moduledir" options to scons. Try something like: {{{ setenv PREFIX /home/me/mydir setenv ASAPPY /home/me/python scons prefix=$PREFIX moduledir=$ASAPPY }}} 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/asap' export PYTHONPATH }}}