Question

I'm not sure if this is the correct part of the stackoverflow family to be posting this question to so I apologize if this isn't the correct site.

I'm trying to setup a new installation of SAS on Red Hat Enterprise Linux Server release 6.5 on a 64-bit machine and I keep getting an error when attempting to run the setup.sh file included with SAS. In the terminal I receive the following:

An error occurred while launching Java. Please check the following log file:
/home/user/.SASAppData/SASDeploymentWizard/deploywiz_2013-12-15-23.41.42.log

/tmp/_setup21770/products/javaruntime__99185__lax__xx__sp0__1/lib/i386/xawt/libmawt.so: libXext.so.6: cannot open shared object file: No such file or directory

If I look at the error log I receive the following:

Sun Dec 15 23:16:36 EST 2013
Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/_setup13184/products/javaruntime__99185__lax__xx__sp0__1/lib/i386/xawt/libmawt.so: libXext.so.6: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.load0(Unknown Source)
    at java.lang.System.load(Unknown Source)
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at sun.security.action.LoadLibraryAction.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
    at sun.awt.DebugHelper.<clinit>(Unknown Source)
    at sun.awt.X11GraphicsEnvironment.<clinit>(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
    at com.sas.ssn.Kit.main(Kit.java:1653)

The strangest part is that I know libXtst (which from what I understand contains libXent) is installed properly. Running locate libXtst shows it in the following locations:

/usr/lib64/libXtst.so
/usr/lib64/libXtst.so.6
/usr/lib64/libXtst.so.6.1.0

and yum list libXtst returns libXtst.x86_64 1.2.1-2.el6 @rhel-x86_64-server-6 as being installed.

I've Googled this pretty extensively and haven't come up with any reasonable solutions, even the previous admin's documentation on SAS installations didn't help here. I'd really appreciate a hand or pointer in the correct direction.

Edit: I forgot to include that if I run setup.sh -console I'm able to step through the text based installer.

Was it helpful?

Solution

The problem is that you're running a 32-bit JVM, and it can't link to the 64-bit system libraries; note the path lib/i386/xawt/libmawt.so. You need to either run with a 64-bit JVM (the best option in any case) or install the 32-bit X libraries.

OTHER TIPS

I ultimately ended up contact SAS support and it seems that the following 32-bit packages needed to be installed alongside their 64-bit counterparts for the installer to run:

  • libXp.i686
  • libXtst.i686
  • libXext.i686

Once these packages were installed the installer ran without a problem.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top