Version 33 (modified by 17 years ago) ( diff ) | ,
---|
Installing ASAP and dependencies from source
- 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 touch C/*.l make install
- casacore (aips++)
Download casacore-0.1.1)
tar jxvf casacore-0.1.1.tar.bz2; cd casacore-0.1.1 python setup.py libtype=static prefix=/usr/local install
Patience...
- ASAP
(You need to have subversion installed)
svn co http://svn.atnf.csiro.au/asap/tags/asap2.2.0 cd asap2.2.0
You need to have the scons package installed (see o/s specific notes)
scons mode=release 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 mode=release casacoreroot=/usr/local makedist=<identifier>
Then email the resulting tarball in the dist subdirectory to mailto:Malte.Marquarding@…