Archive for March, 2010

Installing SAS 9.2 under Ubuntu 9.10 (Karmic)

March 29, 2010 Leave a comment

Insert the SAS installation disk and start the installation script with

sudo /media/cdrom0/

(The path to you CD-ROM drive may differ slightly.)

You need to provide the location of your SAS license file and of the Java Runtime Environment. For the latter, you can have SAS install version 1.5 for you. If you want to use your existing version, you can find it by typing

locate 'bin/java'

into a new terminal window.

If the system throws an error after starting the installation, click on the ‘Retry’ button and read the error message in the console window popping up. Most likely, it will be ‘/bin/sh: Illegal option -p’

This error message comes up if bash is not your default shell (it’s usually dash on a fresh Ubuntu install). You can easily change that by typing

sudo rm /bin/sh
sudo ln -s /bin/bash /bin/sh

into a terminal window. After that, the installation should run smoothly and you can accept all the default selections.
To create a Desktop or panel shortcut at the end of the installation, use

/usr/local/SAS/SASFoundation/9.2/sas -work /tmp

To restore dash as your default shell (dash has a lower overhead than bash), you can do

sudo rm /bin/sh
sudo ln -s /bin/dash /bin/sh

Categories: Hacks, Science

Installing StatTransfer 10 on Ubuntu 9.10 (Karmic)

March 18, 2010 Leave a comment

OK, here we go again… just as with Stata it’s great to have a Linux version of StatTransfer available but there’s some quirks to overcome before it will run smoothly.

Please note: Circle Systems (the makers of S/T) recommends that you install their software as a non-root user in your home directory. I personally prefer to separate my applications and my data, therefore I install it with sudo. If you are not sure what you are doing and you rather to be on the safe side, install S/T as a non-root user. In that case, you will only have to install that older C++ library version (see below) to make S/T run on your machine.

After downloading the installer file to your Desktop, open a terminal and do

chmod +x ~/Desktop/stlinux32_install # make file executable

sudo ~/Desktop/stlinux32_install # install it

The program will install in /usr/local/stattransfer10. A user configuration directory will be created in your /home folder. Because you installed with sudo, the file is owned by root. Doing

sudo chown -R yourusername:yourusername ~/.stattransfer10

will make the file readable and writable for you.
Now try to start S/T using the Desktop shortcut. If the GUI comes up, you can proceed with the licensing procedure. If not, try to start it from the Terminal


Chances are you get an ‘ error while loading shared libraries: cannot open shared object file: No such file or directory’.

I tried the symbolic link trick that worked so well with Stata but it didn’t cut no ice with StatTransfer. However, installing an older version of libstdc++ worked. Download the package and install by doing

cd ~/Desktop
sudo dpkg --install libstdc++5_3.3.6-17ubuntu1_i386.deb

To activate your copy, you have to run S/T as root:

sudo /usr/local/stattransfer10/stattransfer

Go to About, press Activate Online, and follow the instructions. Once activated, run S/T only as a non-root user.

Categories: Hacks, Science