Linux — 32/64 bit

Note: The Linux versions of SAS has been developed on a specific Linux distibution (usually some server-version of RedHat Linux). Mainly due to the differences in the default package selections in the various Linux distributions, SAS may not run on your Linux installation. However, with appropriate modifications of the installed Linux system, it is usually possible to make SAS run.

The SAS installation scripts for Linux make some assumptions about the Linux file system and installed tools that no longer applies to most modern Linux distributions.

To help with these problems we supply SAS for Linux in different manner:

  1. It is a self extracting archive of an active (i.e. active licence included) preinstalled Linux version of the appropriate version of SAS.

  2. Supplied with tools to make sure that some specific environments and libraries are available.

  3. SAS for Linux will end up in /opt, not in the normal executable file hierarchy.

The archive and tools have been successfully tested with the Ubuntu and Fedora Linux variants.

  • Note: All the 32-bit versions of Linux-SAS are able to run on 64-bit Linux.

  • Note: The SAS Help requires you have Java installed in your browser.

  • Note: You have to start firefox before you start SAS (if you intend to use the SAS help).

Also worth noting is that SAS for Linux differ in a number of ways from the same version on Windows.

  1. There is no build in editor in SAS for Linux, you will need to write the code in a separate editor and then paste it into SAS.
  2. SAS on Linux include a batch mode, i.e. you can have SAS run a file directly from the command line without any windows open. As a consequence, you cannot associate SAS files to SAS and expect SAS to just open the file whenever you double click on a SAS file (this is the normal behavior on Windows, not so on Linux).

To install it follow the three steps below

  1. Pre installation
  2. Download
  3. Installation
  4. Post installation

Pre installation

The self extracting archive also contain a prechecking tool which is automatically executed after extracting the archive.

It is however a good idea to manually download and run this tool in advance.

  • CheckLinux (right click and save to disk)
  • To be executed on the command line via
    sh CheckLinux

(root not required as the script only makes tests).

The CheckLinux script tests the Linux machine for (general) known issues preventing SAS from running. The script then suggests what should be done in order to make SAS work. The script it self does not change anything in your Linux machine.

  • In the suggestions that CheckLinux may come up with, it is very important to run exactly the command suggested including the chosen quotes.

    Otherwise you may end up seriously damaging your Linux installation!

Once CheckLinux reports Everything OK proceed to the installation

Note 1: CheckLinux, has not been tested on all Linux distributions. Please contact [Lars Madsen](, ifCheckLinux`, reports Everything OK and SAS fails to start after the installation.

Note 2: One of the things needed by SAS is that /bin/sh points to /bin/bash. CheckLinux shows how to change this by hand. On Ubuntu the official method is to run

   sudo dpkg-reconfigure dash

and then aswer no. This resets /bin/sh to point to bash instead of the default dash. CheckLinux mentions the method by hand since this works on all systems.

At the end of the installation, a similar script will be suggested for you to run. This post-installation version will perform tests that are more specific to the SAS version youhave installed (for example suggesting extra libraries to install if you are on a 64bit system and have chosen to install a 32bit SAS).

Again this step is very important.


Download an appropriate SAS for Linux version. Remember that 32bit SAS run just fine on 64bit Linux.

In all cases the licence is included. The common installation instruction starts further down this page.

SAS 9.1.3 — Linux 32bit

  • Download size: 411 Mb
  • Downloadable from: MATH-AU (

SAS 9.2 — Linux 32bit

  • Download size: 2.4 Gb
  • Downloadable from: MATH-AU (

SAS 9.3 — Linux 32bit

  • Download size: 3.3 Gb
  • Downloadable from: MATH-AU (

SAS 9.2 — Linux 64bit

  • Download size: 2.4 Gb
  • Downloadable from: MATH-AU (

SAS 9.3 — Linux 64bit

  • Download size: 3.3 Gb
  • Downloadable from: MATH-AU (

SAS 9.4 — Linux 64bit

  • Download size: 3.6 Mb
  • Downloadable from: MATH-AU (


Above you downloaded a (huge) .sh file, which in this case is a self extracting archive containing a complete SAS installation with an active licence.

Note that for the installations you will need at least 2.5 x the size of the download.

The downloaded .sh file must be executed as root (on most systems via the sudo tool)

Let us assume the file you downloaded from the download interface is called Then to install it you should run

sudo sh

This may take quite a while depending on your system.

The installation script creates a softlink (/usr/local/bin/sas) to the relevant SAS-binary, such that SAS can be started by typing sas in a terminal window.

The installation script also installs SAS in the desktop menu, if available. Dependig on your desktop system, SAS should appear in the sub menus of both Education and Development.

Post installation

As part of the installation, a post installation version of CheckLinux have been installed, its location will be listed at the end of the installation process.

This extra CheckLinux contains more specialized tests than the pre installation version. For example, if you are running 32bit SAS on 64bit Linux, we know you will need to install some extra packages from the repositories.

In a terminal please run (change to make it appropriate for your download)

sh /opt/sas9xxx-yy/CheckLinux

This may suggest extra libraries that need to be installed. Perform these changes until a repeated run of CheckLinux reports that everything is OK.

Now SAS should be able to run. Simply test it by running the following command in a terminal:


If everything works, you can delete the downloaded .sh file.

Additional for Ubuntu 16.04

There is a library that SAS needs that are no longer shipped with Ubuntu 16.04 and onwards: libxp6. It seems however, that you can easily use the one shipped with Ubuntu 14.04 instead. Simply go to an Ubuntu mirror, for example and get the latest version, as of time of writing, this is libxp6_1.0.2-2_amd64.deb (for a 64-bit Ubuntu). Install it using

sudo dpkg -i libxp6_1.0.2-2_amd64.deb


Installing a SAS launch icon on the desktop

To install a SAS launch icon on the desktop, run the InstallDesktopSAS script (change appropriately):


Removing SAS

Uninstalling on Linux is done by executing the included script: RemoveSAS

sudo /opt/sas9xxx-yy/RemoveSAS

The RemoveSAS script removes the specific version of SAS, including the softlink in /usr/localbin, the desktop menu entries and the desktop launch icon.