wiki:ASAPSourceInstall

Installing ASAP and dependencies from source

  • You need scons, flex, bison, g++, g77/gfortran, cfitsio, boost, python, lapack, blas 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 need wcslib and rpfits most likely from source
  • You will also need ipython, matplotlib, numpy to run ASAP
  • note that on suse systems cfitsio header files need cfitsioincdir=/usr/include/libcfitsio0

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.bz2
tar zxf wcslib.tar.bz2
cd wcslib-4.8.1
./configure
make
su
make install
# want to link statically, so remove shared library
rm -f /usr/local/lib/libwcs.so*
exit
cd -

Install casacore

wget http://casacore.googlecode.com/files/casacore-1.3.0.tar.bz2
tar jxf casacore-1.3.0.tar.bz2
cd casacore-1.3.0
scons
su
scons install
exit
cd -

Install asap

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

Now it's probably best to get the asap data repository.

   export ASAPDATA=.
   ./bin/asap_update_data
   unset ASAPDATA

Now install asap

scons  makedist=egg
cd asap-4.0.0
sudo python setup.py install

After exiting the root user's shell 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. fedora-12 for fedora 12, or fedora-12-x86_64 for the 64bit version of fedora-12 and run the following

python setup.py bdist_egg
cd dist
ls

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

Last modified 12 years ago Last modified on 10/20/11 16:26:08