Latest Tweets
Tags
Accounts/Logins ACT Active Directory Backup Base SAS Best Practices Blogging Books I/O IWA Kerberos Linux Logging Metacoda Security Plug-ins Metadata API Metadata Migration Metadata Promotion Mid-Tier ODS PAM platformadmin.com Roles & Capabilities SAS SAS 9.1 SAS 9.2 SAS 9.3 SAS Architecture SAS Configuration SAS Enterprise Guide SAS Global Forum SAS Information Delivery Portal SAS Installation SAS Management Console SAS Metadata SAS Metadata Security SAS Papers SAS Training SAS Usage Notes SPN SQL Server Support Resources Ubuntu UNIX Windows Windows 2008 R2Metacoda Links
SAS Institute Links
Blog Roll [ ... and links to blog rolls]
SAS Communities
SAS User Groups
Categories
- Dubious
- General
- Guest Posts
- Interesting SAS Usage Notes
- Linux
- Metacoda
- Metacoda Security Plug-ins
- SAS Architecture
- SAS Books
- SAS Configuration
- SAS Documentation
- SAS Enterprise Guide
- SAS Installation
- SAS Management Console
- SAS Metadata
- SAS Metadata Security
- SAS Open Metadata API
- SAS Software
- SAS Support Resources
- SAS Training
- SAS User Groups
- Solaris
- VirtualBox
- Windows
Archives
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010





Getting SAS Software running on CrunchBang Linux 64-bit
This is a follow-up to my prior post on Getting SAS® Software running on Arch Linux 64-bit. In my quest for a new Linux distro the next stop was CrunchBang Linux. I like the look of CrunchBang because it’s lightweight, based on Debian, and uses Openbox by default. Being Debian based, like Ubuntu, I get to re-use the knowledge I gained from using Ubuntu over the last few years (it’s hard not to automatically type apt-get whenever I want to install something!). CrunchBang is not a rolling release distro like Arch or Gentoo but it’s other attributes make it well worth a look. I’ve seen a disclaimer on the web site where they say it “… could possibly make your computer go CRUNCH! BANG!” but from everything else I’ve read it sounds pretty stable. Anyway, I like my (own) computers to go crunch bang every now and then – it’s a great opportunity to learn something new
I installed the CrunchBang 11 “Waldorf” 64-bit testing image in a multi-boot configuration, alongside Arch and Ubuntu, to test it with our existing SAS deployments. These are the steps I needed to take to get the existing SAS software installation running on CrunchBang 64-bit. As with Arch, no changes were needed to the SAS deployments, it just required a few minor changes and additional libraries for the CrunchBang installation.
After CrunchBang had been installed and I’d mounted the SAS installation volume, I tried to run SAS 9.3 M2 first and got the following error:
I recognized this one immediately. I’d seen it several time in the past. Just like Ubuntu, CrunchBang has dash and not bash as the default shell.
I wrote a post about this before: Running SAS on Ubuntu Linux: Dash to Bash. It can be resolved by switching to bash as the default shell with dpkg-reconfigure dash:
… choose the No option to not use dash (and use bash).
With the shell issue resolved, the next error was:
As with Arch, we were missing libXp. This was easily resolved by installing libxp6 with apt-get:
After installing libxp6, SAS 9.3 M2 was now starting ok, but I still had the following error at the top of the log window:
I thought this might be because whilst the SAS installation itself was 64-bit, it also included a 32-bit JRE, and I haven’t yet installed all the libraries required for running 32-bit binaries. I confirmed the 32-bit JRE was failing:
I knew I’d need 32-bit support in order get SAS 9.1.3 SP4 32-bit running anyway, so I might as well sort it out now. I’d done this in the past with Ubuntu by installing the ia32-libs package. However when I tried that here I ran into a little problem:
I wasn’t immediately sure how to fix this one so I searched the CrunchBang forums. When I started looking at CrunchBang one of the things I liked were the forums. They seemed to be full of lots of very useful information and populated by very friendly people. Almost immediately I found this “Trying to install ia32-libs” post which then led me to this particularly helpful post: “[SOLVED] ia32 packages kept back from dist-upgrade” – it’s great when you find posts that start with with word solved!
From that post I followed the instructions given at item #5 and it solved the problem. It also pointed to background info in a Multiarch HOWTO document on the Debian wiki.
I checked my config and found I only had 64-bit amd64 and no 32-bit i386 support:
… so I added i386:
… this was followed by adding [arch=amd64,i386] to each line of /etc/apt/sources.list (between the deb and the URL items) which for me resulted in this:
… and finally an update/upgrade and successful install of the ia32-libs package (which installed many i386 packages):
Once that had finished I tried the SAS 9.3 M2 installation’s 32-bit JRE and it worked:
I verified that SAS 9.3 M2 was also starting without the Java error at the top of the log. The other 64-bit SAS versions 9.3 M1 and 9.2 M3 were also working now too. As a bonus, now I had 32-bit binary support, I was also able to run 32-bit SAS 9.1.3 SP4 without any additional changes.
As I mentioned in my earlier post, on getting SAS software running on Arch, the officially supported Linux platforms for SAS are RedHat and SUSE (as far as I know). Of course that doesn’t mean SAS won’t run on other Linux distros like CrunchBang and Arch, they’re just not officially supported. That makes sense – there are way too many Linux distros out there for SAS to be able to support them all. However, if like myself, you’re a developer, don’t have a strong requirement for official support with a business critical SAS installation, and want to try SAS on other Linux distributions, I hope you find these posts useful.