I had to use non-default compilers to compile version 6.27 onwards. I have used developer toolset version 9 to build version 6.31.1. This is initialised using the command:
scl enable devtoolset-9 bashYou should not need to use these compilers directly unless you are compiling Xspec models.
These are the Bristol settings for Centos/SL7 Linux:
export HEADAS=/usr/local/heasoft-6.31.1/x86_64-pc-linux-gnu-libc2.17 alias heainit=". $HEADAS/headas-init.sh" heainitIf you want heasoft to be initialised by typing 'heainit' then put the following in your ~/.bashrc
export HEADAS=/usr/local/heasoft-6.31/1/x86_64-pc-linux-gnu-libc2.17 alias heainit=". $HEADAS/headas-init.sh"Type heainit in your terminal to initialise the software before starting programs such as xspec.
setenv MANPATH /opt/rh/devtoolset-7/root/usr/share/man:${MANPATH} setenv LD_LIBRARY_PATH /opt/rh/devtoolset-7/root/lib64:${LD_LIBRARY_PATH} --> Setenv HEADAS /usr/local/heasoft-6.29/x86_64-pc-linux-gnu-libc2.17 alias heainit "source $HEADAS/headas-init.csh" heainitand you can the following lines in your .cshrc
setenv HEADAS /usr/local/heasoft-6.29/x86_64-pc-linux-gnu-libc2.17 alias heainit "source $HEADAS/headas-init.csh"Type heainit in your terminal to initialise the software before starting programs such as xspec.
If you need to use a tcsh/csh, you can do it as below:
setenv HEADAS /usr/local/heasoft-6.29/x86_64-pc-linux-gnu-libc2.17 alias heainit "source $HEADAS/headas-init.csh" heainit
bash/sh: export HEADAS=/usr/local/heasoft-6.26/x86_64-pc-linux-gnu-libc2.12 alias heainit=". $HEADAS/headas-init.sh" heainit tcsh/csh setenv HEADAS /usr/local/heasoft-6.26/x86_64-pc-linux-gnu-libc2.12 alias heainit "source $HEADAS/headas-init.csh" heainit
The Linux version has been compiled from source, so users of Xspec can compile their own models, see the end of this page. Although this may no longer be necessary.
From the HEASOFT installation guide:
***************************************************************************** ADDING LOCAL MODELS TO XSPEC 12 AFTER INSTALLATION ***************************************************************************** NOTE: Local models can only be built using the HEASOFT source distribution. Users should not remove their source distribution after installing in order for local model building to function properly. In XSPEC 12, local models are always built into shared libraries which can be loaded at xspec run-time. This is performed with two new xspec commands, 'initpackage' and 'lmod', which simplify the process in comparison with previous versions. Please refer to Appendix C of the XSPEC 12 manual for details. There is no longer an option or need to build and install xspec local models during the main HEASOFT build. Those wishing to automate the loading of their local model libraries upon xspec start-up (whether for themselves or for system-wide users), should also refer to the "Customizing XSPEC" section of the manual.