Clean Install Guide - RobertRosca/MPhys-Project-Work GitHub Wiki
HEASOFT Install
Download from: https://heasarc.nasa.gov/lheasoft/download.html
On Ubuntu, heasoft requires the additional packages:
sudo apt-get -y install libreadline6-dev libcurl4-gnutls-dev libncurses5-dev xorg-dev gcc g++ gfortran perl-modules python-dev make build-essential libx11-dev libxt-dev
Run configure to set install to custom directory ~/Software/heasoft
./configure --prefix="~/Software/heasoft" >& config.out & tail -f config.out
Then build:
make >& build.log & tail -f build.log
Then install:
make install >& install.log & tail -f install.log
In prefix folder, there should be a folder for the build platform, e.g. x86_64-unknown-linux-gnu-libc2.12, use:
export HEADAS=/path/to/platform/folder
. $HEADAS/headas-init.sh
This should work silently without errors. Now (if needed) create .bash_aliases, add:
HEADAS=~/path/to/platform/folder
export HEADAS
alias heainit=". $HEADAS/headas-init.sh"
Try running heainit in a new terminal, test to see if fhelp works.
CALDB Install
Follow https://heasarc.gsfc.nasa.gov/docs/heasarc/caldb/install.html
Add to .bash_aliases:
CALDB=/path/to/caldb/
export CALDB
alias caldbinit="source $CALDB/software/tools/caldbinit.sh
Might have to run sudo chmod +x caldbinit.sh