wiki:ASAPSourceInstall

Version 12 (modified by Chris Phillips, 18 years ago) ( diff )

--

Installing ASAP and dependencies from source

  • Rpfits Download rpfits
       tar zxvf rpfits.tar.gz; cd rpfits/linux
           (edit GNUMakefile and change RPFITSROOT as appropriate)
       make install
    
  • CASA (aips++) Download casa_asap (or casa_asap2.1)
       tar jxvf casa_asap.tar.bz2; cd casa_asap
            (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 asap_src
       tar jxvf asap_src.tar.bz2; cd asap2.0
    

Check Makefile and src/Makefile define library paths correctly for your system, specifically cfitsio. Remove -pedantic from CXXFLAGS if using gcc >= 3.4

   make

Check if the module works. If the following statement returns without a message, all is good!

  cd /tmp; python -c "import _asap"; cd -

Install it to the default location:

   su
   make install
  • ASAP Data Download asap_data
       su
       cd /usr/share/asap
       tar jxvf <download_directory>/asap_data.tar.bz2
    

Now you can test it by executing:

   asap
Note: See TracWiki for help on using the wiki.