Installing SAS 9.4 on Ubuntu 14.04

Officially SAS does not support Ubuntu Linux as a platform, in spite of it being the most popular desktop distribution. It will run, but there are two things you need to do:

First, reconfigure Ubuntu not to use dash. The SAS Deployment Wizard will freeze when you first click “Next” during the install if you don’t do this.

sudo dpkg-reconfigure dash

That being done, you should be able to install SAS Foundation.

Second, SAS requires libjpeg to run. When you first run sas, you’ll get this error:

ERROR:  BRIDGE FAILURE - ERROR LOADING IMAGE 
        MODULE: sasmotifsasvsub HyS SUBSYSTEM: 8 SLOT: 11 
ERROR: Could not load /usr/local/SASHome/SASFoundation/9.4/sasexe/sasmotif (35 images loaded) 
ERROR: libjpeg.so.62: cannot open shared object file: No such file or directory 
ERROR:  BRIDGE FAILURE - ERROR LOADING IMAGE 
        MODULE: sasmotifsasvsub HyS SUBSYSTEM: 8 SLOT: 11

Install this by running this command:

sudo apt-get install libjpeg62

SAS should now run.

Additionally, while not common, but if you have SAS/Secure installed and want to pull files via https, you’ll need to point it at SSL CA certificates. You can kick off SAS with

-SSLCALISTLOC="/etc/ssl/certs/ca-certificates.crt"

Or just create a file ~/sasv9.cfg with that in it.

Update: This works on 13.10 and 14.04

10 Comments

  • ronnicek
    Posted May 27, 2014 at 1:35 pm | Permalink

    Have almost same issue on RHEL..

    installed libXp-devel + libXp

  • nomoreglitches
    Posted October 9, 2014 at 4:29 pm | Permalink

    Hi Philihp,

    thanks for the tips on installing SAS on Ubuntu 14.04. Do you possibly know anything about the error message:
    Error: There appear to be discrepancies in the permissions on your SAS Software Depot.

    Thanks a lot in advance

    • philihp
      Posted October 10, 2014 at 6:51 pm | Permalink

      If you’ve got your Software Depot on an external drive, make sure it’s mounted with the appropriate permissions. There’s an error message that will tell you to `chmod -R 755` the directory, but this won’t work if it’s a mounted USB, you have to take care of that in your /etc/fstab file.

  • Angry
    Posted January 23, 2015 at 2:13 pm | Permalink

    No mention of PATH?
    sas will not run (but ubuntu says there are 20 similar options – yay…) unless you add /usr/local/SASHome/SASFoundation/9.4 to your PATH.

    Even then, sasssetup gives this nonsense (it is there and executable to no avail?!):
    /usr/local/SASHome/SASFoundation/9.4/sassetup: line 1: /usr/local/SASHome/SASFoundation/9.4/perl/bin/perl5: No such file or directory

    WHAT?!

    • philihp
      Posted March 3, 2015 at 3:00 am | Permalink

      Make sure you sudo dpkg-reconfigure dash, and chmod +x the directory. It’s possible to get this to work, I promise you. It’s just not easy.

      You can read and edit the sassetup script to see where they’re going wrong. Although you shouldn’t have to… I totally agree with you. The SAS install is notoriously an awful experience, on par with how bad Oracle is with theirs. As you are a paying customer of SAS (and I assume you are since you have the software), you should feel entitled to email Jim dot Goodnight at SAS, and let him know that the experience is just as awful as it always has been. I promise you, he loves talking to and hearing from users.

      I’m a firm believer that Base SAS should be as easy to install as apt-get install r-base.

    • Karo
      Posted April 3, 2015 at 10:13 am | Permalink

      hi Angry, Philihp,
      has anyone found a solution to this issue, i can’t renewal the new License with sassetup :./sassetup: Zeile 1: /usr/local/SASHome/SASFoundation/9.4/perl/bin/perl5: Datei oder Verzeichnis nicht gefunden
      That is line1 : eval ‘exec `dirname $0`/perl/bin/perl5 -U $0 ${1+”$@”}’
      if $running_under_some_shell;

      echo $PATH
      /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/SASHome/SASFoundation/9.4:/usr/local/SASHome/SASFoundation/9.4/perl/bin

      any Idea?

      • philihp
        Posted April 21, 2015 at 8:58 am | Permalink

        Good luck! I am unable to answer this as I do not have a SAS license.

  • Pernille
    Posted February 26, 2015 at 10:18 am | Permalink

    Dear Philip
    I would like to install sas on my laptop with ubuntu 14.04 LS, but I do not understand all the steps in the SAS deployment wizard, and am therefore not able to figure out which options to choose and which paths to submit when prompted. Would you be able to help me through the installation?
    I have received installation files from my university, but they can not offer help to linux.
    I would be very grateful for any help – I can send you screenshots of the different steps if this is helpful.
    Best regards

    • philihp
      Posted March 3, 2015 at 2:32 am | Permalink

      Feel free to email me, I’ll do my best. I no longer have access to SAS software, and would be unable to follow along, unfortunately.

Post a Comment

Your email is kept private. Required fields are marked *