SAS Requirements - XMM-Newton
External Software Requirements
Tools required to work with SAS
To following Table lists the tools that you need to install to work with SAS.
|Name||Version (tested)||Download web page||Comments|
|Python||3.6.2||This version of Python and all the modules required to work with SAS are handled trhough Miniconda 4.3.31||The installation of SAS takes care of installing all these components|
|Perl||5.24.1||This version can be downloaded and installed from perlbrew||We recommend you install Perl 5.24.1 and then install SAS 18.0 with SAS_PERL pointing to the Perl 5.24.1 binary provided by such installation.|
|ds9||7.5 or later||Binaries available from ds9 web site.||xpa 2.1.14 or later is not included with ds9. Please download and install it independently.|
|Grace||5.1.25||Only source code is available from Grace web site.||MacOS and most Linux distributions provide a binary package ready to be installed.|
|Heasoft||6.21 or later||Binaries and source code available from Heasoft web site.||A binary installation is sufficient to work with SAS. However, if you decide to build it from source code, please do not forget to define the PERL environment variable to point to the Perl binary used to install SAS (SAS_PERL) and the PYTHON environment variable to point to the Python 3.6.2 binary installed by SAS.|
|WCSTools||3.9.5||Only source code is available from WCSTools web site.||Very easy to build from source code.|
Some SAS tasks are Perl scripts, e.g emchain, epchain, omichain, etc. In order to work, they require that Perl is installed in your system. All SAS Perl scripts include the location of a Perl binary in the first line of the script (she-bang). The SAS installation script configure_install looks in specific system directories for valid Perl binaries to replace the perl specified in the first line of all SAS perl scripts.
As described in the installation procedure, the configure_install script can set the Perl to be used by defining the SAS_PERL environment variable to point to the absolute path of a specific Perl binary. Alternatively, the configure_install will look for a valid Perl binary in /usr/local/bin,/usr/bin/perl, /opt/local/bin and /sw/bin. If none is found, the script warns the user and aborts the installation. Once Perl has been installed, the user must run again the configure_install script, to complete the installation.
As indicated in the above Table, please make sure that you install on your system Perl 5.24.1, the same that was used to build the SAS 18.0.0. A very easy way to do it is by means of the perbrew software. Once this is done and before SAS 18.0.0 is installed, define SAS_PERL to point to the Perl 5.2.1 binary.
Given that Heasoft includes also Perl tasks, please make sure the installation of this software, either binary or source code, is done with Perl 5.24.1, by defining the PERL environment variable to point to such binary.
Python installation and configuration is done through the SAS installation process.
X11 on MacOS
To work with SAS on MacOS you need to have installed the X Windows or X11 software. For MacOS Sierra you can get X11 from the XQuartz project web site. On both, we have tested XQuartz 2.7.11 to work successfully with SAS.