Skip to content

Instantly share code, notes, and snippets.

@msmaromi
Last active September 22, 2019 09:12
Show Gist options
  • Save msmaromi/9eb84e3ccd036686a354968910ee9714 to your computer and use it in GitHub Desktop.
Save msmaromi/9eb84e3ccd036686a354968910ee9714 to your computer and use it in GitHub Desktop.
Setup Heasoft (NASA's Software)
# Download the software https://heasarc.gsfc.nasa.gov/docs/software/heasoft/download.html
# Extract
tar -xvzf heasoft-x.x.x.tar.gz
# This configuration is for bash variant. For other variant please check https://heasarc.gsfc.nasa.gov/docs/software/heasoft/ubuntu.html
# Instal pre-requisites
sudo apt-get -y install libreadline6-dev libcurl4 libcurl4-gnutls-dev libncurses5-dev xorg-dev gcc g++ gfortran perl-modules python3-dev
# Set environment variables for compilers/interpreters
export CC=/usr/bin/gcc
export CXX=/usr/bin/g++
export FC=/usr/bin/gfortran
export PERL=/usr/bin/perl
export PYTHON=/usr/bin/python
# make
cd path/to/heasoft-x.x.x/BUILD_DIR/
./configure
make
make install
# initialization
export HEADAS=path/to/heasoft-x.x.x/x86_64-pc-linux-gnu-libc2.27
alias heainit=". $HEADAS/headas-init.sh"
# NOTE: In the examples above, (PLATFORM) is a placeholder for the platform- specific string denoting your machine's architecture, for example:
# x86_64-pc-linux-gnu-libc2.29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment