Error seen opening Spectrum Control Panel: libXtst.so.6: cannot open shared object file

Document ID : KB000049703
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

After a successful installation of Spectrum 9.2 plus the latest hotfix on Redhat Linux the following error is seen when opening the Spectrum Control Panel:

     -bash-3.2$ ~/bin/SCP &             
     [1] 10176             
     -bash-3.2$ The DISPLAY environment variable must be set.             
     export DISPLAY=10.187.27.19:0.0             
     [1]+ Exit 1 ~/bin/SCP             
     -bash-3.2$ ~/bin/SCP &              
     [1] 10307              
     -bash-3.2$ Exception in thread "main" java.lang.UnsatisfiedLinkError:              
     /xtra/ca/spectrum/Java/jre/lib/i386/xawt/libmawt.so: libXtst.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(ClassLoader.java:1758)              
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1654)              
         at java.lang.Runtime.load0(Runtime.java:770)             
         at java.lang.System.load(System.java:1003)             
         at java.lang.ClassLoader$NativeLibrary.load(Native Method)             
         at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1758)             
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1675)
         at java.lang.Runtime.loadLibrary0(Runtime.java:823)
         at java.lang.System.loadLibrary(System.java:1028)
         at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
         at java.security.AccessController.doPrivileged(Native Method)              
         at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)             
         at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)              
         at java.awt.Component.<clinit>(Component.java:560)              
     Could not find the main class:             
     com.aprisma.spectrum.app.controlpanel.ControlPanel. Program will exit.

This error is seen because OS library libXtst.i386 is missing and needs to be installed. You can download libXtst.i386 here: http://www.rpmseek.com/rpm-pl/libXtst.html?hl=com&cx=0 ::

Solution:

Installing the missing library (libXtst.i386) with the following command will resolve the issue:

yum install libXtst.i386