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
Perl 5.22.2 This version can be downloaded and installed from perlbrew We recommend you install Perl 5.22.2 and then install SAS 16.1.0 with SAS_PERL pointing to the Perl 5.22.2 binary provided by such installation.
ds9 7.4 Binaries available from ds9 web site. xpa 2.1.14 is not included with ds9. Please download and install it independently.
Grace 5.1.25 Only source code is available from Grace web site. Mac OS X and most Linux distributions provide a binary package ready to be installed.
Heasoft 6.19 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 set the PERL environment variable to the same version of Perl that is used for SAS.
WCSTools 3.9.4 Only source code is available from WCSTools web site. Very easy to build from source code.

Perl configuration

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.22.2, the same that was used to build the SAS 16.1.0. A very easy way to do it is by means of the perbrew software. Once this is done and before SAS 16.1.0 is installed, define SAS_PERL to point to the Perl 5.22.2 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.22.2, by defining the PERL environment variable to point to such binary.

X11 on Mac OS X

To work with SAS on Mac OS X you need to have installed the X Windows or X11 software. For Mac OS X El Capitan and 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.