How to quickly install and setup NASA HEASoft on Ubuntu (or any Debian based) Linux
The official Installation guide for heasoft is overwhelming and confusing for many new users who are trying to install HEASoft for the first time. Hence this tutorial where I will show each step very simply.
Note: This is for installing HEASoft from source.
Cut paste the file to the
Home folder and right-click
Extract here in the same folder.
Open Terminal and input the following:
sudo apt -y install libreadline6-dev libncurses5-dev xorg-dev gcc g++ gfortran perl-modules python-dev
These are the dependencies that are needed by heasoft to function.
Navigate to the build directory where you will install your software.
Note that the heasoft version in the above command should match with the one you downloaded.
./configure 2>&1 | tee config.out
This may take a few minutes.
make 2>&1 | tee build.log
This will take a lot of time. A lot. It took me above an hour! Go have a Pizza and come back.
make install 2>&1 | tee install.log
Heasoft is now installed. But there are two more steps left to make it easy to use.
Close the terminal and open it again. Then input the following one after the other:
export HEADAS=heasoft-6.21/(PLATFORM). $HEADAS/headas-init.shalias heainit=". $HEADAS/headas-init.sh"
(PLATFORM) is a placeholder for the platform- specific string denoting your machine's architecture. It will be something like this:
Open your bashrc file using the following command:
sudo gedit .bashrc
geditwith your text editor name if you are using something else.
Once the file is open, go to the end of it. And copy paste the same commands from your terminal as Step 8 below the last line of the text file.
Save it, close it and you are done!
Now you can run heasoft by just the following terminal command:
I hope you found the tutorial simple and helpful.
Note that this is just a quick install and setup tutorial, which should work for most of your needs. But if you require some advanced options while installing heasoft, the Official Guide is where you go.