wiki:ASAPSourceInstall

Version 38 (modified by Malte Marquarding, 15 years ago) (diff)

--

Installing ASAP and dependencies from source

Note: For asap-2.2.3 you will need scons-1.2 or later

  • You need scons, flex, bison, g++, g77/gfortran, cfitsio, boost, python to build ASAP. These should be available as system packages (e.g. rpm, deb etc.). You will also need the corresponding development packages (e.g. xyz-dev.deb or xyz-devel.rpm)
  • You will also need ipython, matplotlib, numpy to run ASAP

Install scons-1.2

wget http://prdownloads.sourceforge.net/scons/scons-1.2.0.tar.gz
tar zxf scons-1.2.0.tar.gz
cd scons-1.2.0
su
python setup.py install --prefix=/usr/local
exit
cd -

Install rpfits

Note that linux 32bit is the default in this example. Pick you platform directory from the rpfits directory

wget ftp://ftp.atnf.csiro.au/pub/software/rpfits/rpfits.tar.gz
tar zxf rpfits.tar.gz
cd rpfits/linux
# edit GNUMakefile to use gfortran
perl -pi.bak -e 's/^FC.*$//; s/^FFLAGS.*$//; s/# (FC.*)$/\1/;s/# (FFLAGS.*)$/\1/;s/(LDFLAGS\s+:=).*$/\1 -lgfortran/' GNUmakefile
su
make install
exit
cd -

Install wcslib

wget ftp://ftp.atnf.csiro.au/pub/software/wcslib/wcslib.tar.gz
tar zxf wcslib.tar.gz
cd wcslib-4.3.2
./configure
make
su
make install
# want to link statically, so remove shred library
rm -f /usr/local/lib/libwcs.so*
exit
cd -

Install casacore

wget http://casacore.googlecode.com/files/casacore-0.4.1.tar.bz2
tar jxf casacore-0.4.1.tar.bz2
cd casacore-0.4.1
./batchbuild.py 
su
./batchbuild.py install prefix=/usr/local
exit
cd -

Install asap

wget ftp://ftp.atnf.csiro.au/pub/software/asap/current/asap2.3.0-src.tar.bz2
tar zxf asap2.3.0-src.tar.bz2
cd asap2.3.0
scons 

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

Now you can test it by executing:

   asap

Binary release

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   makedist=<identifier>

Then email the resulting tarball in the dist subdirectory to mailto:Malte.Marquarding@…