wiki:ASAPSourceInstall

Version 36 (modified by Malte Marquarding, 16 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-1.noarch.rpm
su
rpm -i scons-1.2.0-1.noarch.rpm
exit

Install rpfits

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 blaslibdir=/usr/lib/atlas cfitsioincdir=/usr/include/cfitsio
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 lapacklibdir=/usr/lib/atlas cfitsioincdir=/usr/include/cfitsio
su
scons lapacklibdir=/usr/lib/atlas cfitsioincdir=/usr/include/cfitsio install
exit

To help out other users please also create a binary package and replace the version fc9 in the following with your version:

scons makedist=fc9 lapacklibdir=/usr/lib/atlas cfitsioincdir=/usr/include/cfitsio

Then send a notification to mailto:malte.marquarding@… so I can add it to the ftp area.

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

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

Note: See TracWiki for help on using the wiki.