Version 35 (modified by 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
- rpfits
Download rpfits
tar zxvf rpfits.tar.gz; cd rpfits/linux make install
- wcslib
Download wcslib
tar zxvf wcslib.tar.gz; cd wcslib make install
- casacore (aips++)
Download casacore-0.4.1)
tar jxvf casacore-0.4.1.tar.bz2; cd casacore-0.4.1 ./batchbuild.py prefix=/usr/local install
Patience...
- ASAP
(You need to have subversion installed)
svn co http://svn.atnf.csiro.au/asap/tags/asap2.3.0 cd asap2.3.0
You need to have the scons package installed (see o/s specific notes)
scons casacoreroot=/usr/local
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 mode=release casacoreroot=/usr/local 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 casacoreroot=/usr/local makedist=<identifier>
Then email the resulting tarball in the dist subdirectory to mailto:Malte.Marquarding@…