Install HEASOFT on Linux (OpenSUSE Leap 42)

h1. Install HEASOFT on Linux (OpenSUSE Leap 42.3)

(as of 11/2017)

Also see Install SAS on Linux (OpenSUSE Leap 4.23)

1. Needed software: based on https://heasarc.gsfc.nasa.gov/lheasoft/fedora.html (RPM-based = OpenSUSE ) (version in OpenSUSE, installed via YaST2-OpenSUSE) ncurses-devel	5.9-57.1 	Jul 9 21:51:08 2017 libcurl-devel		7.37.0-18.5	May 17 19:25:10 2017 libXt-devel		1.1.5-21.5	May 10 02:00:14 2017 gcc gcc-c++		4.8-11.16	Jul 7 17:02:36 2017 gcc-fortran		4.8-11.16	Jul 7 17:02:36 2017 python-devel		2.7.13-26.1	Jul 7 17:35:07 2017 perl-ExtUtils-MakeMaker	7.10-3.1	Mar 17 19:22:23 2017

Perl			5.18.2-7.15	Jul 7 17:31:32 2017	-> via YaST2-OpenSUSE Perl			 5.22.2 via perlbrew	-> for SAS
 * In respect to Perl also see Install SAS on Linux (OpenSUSE Leap 4.23)

2. download file @heasoft-6.22.1sr@ (incl. Xspec v12.9.1p) from weppage: http://heasarc.gsfc.nasa.gov/lheasoft/download.html 3. install following https://heasarc.gsfc.nasa.gov/lheasoft/install.html or HEASOFT-INSTALL.TXT - unpacked with tar -zxvpf - check details : "HEASOFT-INSTALL.TXT" - cd ~/Software/Science/heasoft/heasoft-6.22.1/BUILD_DIR !!! set perl-path to version 5.22.2, to use it with SAS !!! - source ~/perl5/perlbrew/etc/cshrc - perlbrew switch perl-5.22.2 - setenv PERL ~/perl5/perlbrew/perls/perl-5.22.2/bin/perl config-file (need absolute path and not relative): - ./configure --prefix=~/Software/Science/heasoft/heasoft-6.22.1_install >& config.out & - tail -f config.out make-file: - make >& build.log & - tail -f build.log check for errors: > cat build.log | grep "\*\*\*" > error_build.txt
 * select: *Source Code*, Packages: *General-Use FTOOLS* and *Xspec*

install: > make install >& install.log & > tail -f install.log > cat install.log | grep "\*\*\*" > error_install.txt > make distclean new soft-link: cd ~/Software/Science/heasoft rm heasoft_current ln -s heasoft-6.22.1_install heasoft_current setting up: > setenv HEADAS ~/Software/Science/heasoft/heasoft_current/x86_64-unknown-linux-gnu-libc2.22 > source "${HEADAS}/headas-init.csh"