Search This Blog

Thursday, September 5, 2013

libXtst.so.6 cannot open shared object file error during Oracle Installation

The "libXtst.so.6 cannot open shared object file" is quite common if you install any oracle product on 64bit system and misses something in the system 
prerequisites. A quick resolution is installing the  libXtst package for both 32 bit and 64 bit. But, last time while installing OID on 64bit Linux, I found that though libXtst package is already there, still this error is coming. See the error below and its solution.


The following error is coming during starting of installer.

$ ./runInstaller -ignoreSysPrereqs

-------------------------------------------------------------------------------------------------------------------
The OUI Screen may take around 5 to 30 seconds to come up depending upon system performance. Please Wait .......
-------------------------------------------------------------------------------------------------------------------

Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be redhat-Red Hat Enterprise Linux AS release 4, redhat-2.1, redhat-3, SuSE-9 or UnitedLinux-1.0
                                      Failed <<<<


>>> Ignoring required pre-requisite failures. Continuing...

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-02-11_01-46-40PM. Please wait ...[xxxxxx@Disk1]$ Oracle Universal Installer, Version 10.1.0.5.0 Production
Copyright (C) 1999, 2006, Oracle. All rights reserved.

Exception java.lang.UnsatisfiedLinkError: /tmp/OraInstall2013-02-11_01-46-40PM/jre/1.4.2/lib/i386/libawt.so: libXtst.so.6: cannot open shared object file: No such file or directory occurred..
java.lang.UnsatisfiedLinkError: /tmp/OraInstall2013-02-11_01-46-40PM/jre/1.4.2/lib/i386/libawt.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:1560)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1477)
        at java.lang.Runtime.loadLibrary0(Runtime.java:788)
        at java.lang.System.loadLibrary(System.java:834)
        at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)

Solution

Although the following command is showing that libXtst package is installed for both 32bit and 64bit.
#  rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})
libXt-1.0.2-3.2.el5 (x86_64)
libXt-1.0.2-3.2.el5 (i386)

But oracle installer is trying to get file libXtst.so.6 from /usr/lib/libXtst.so.6 where libXtst.so.6 file doesn't exist. The 32bit version of the file is in /usr/X11R6/lib/libXtst.so.6 location.

So, I have created a softlink using following command and restarted the installation.
ln -s /usr/X11R6/lib/libXtst.so.6 /usr/lib/libXtst.so.6

2 comments:


  1. http://dbalertlog.blogspot.com/2012/06/adformsctlsh-exiting-with-status-150.html

    adformsctl.sh: exiting with status 150
    If adoacorectl.sh,adformsctl.sh,adoafmctl.sh not coming up after start the application services
    adoacorectl.sh: exiting with status 150
    adformsctl.sh: exiting with status 150
    adoafmctl.sh: exiting with status 150

    Check the log file for these three processes:
    $LOG_HOME/appl/admin/log/adoacorectl.txt
    $LOG_HOME/appl/admin/log/adoafmctl.txt
    $LOG_HOME/appl/admin/log/adoaformsctl.txt
    If you see error like below

    "opmn id=app01.rajeev01.com:6200
    no processes or applications matched this request

    06/20/12-02:50:27 :: adoafmctl.sh: exiting with status 150"

    Stop all three services.
    Clean the directory, under persistence from below directory and restart all three services
    $ORA_CONFIG_HOME/10.1.3/j2ee/oacore/persistence
    $ORA_CONFIG_HOME/10.1.3/j2ee/oafm/persistence
    $ORA_CONFIG_HOME/10.1.3/j2ee/forms/persistence

    ReplyDelete
  2. Dear Mr Hai, after use your solution , new exception was thrown . Please give me your hands .

    ./runInstaller -ignoreSysPrereqs
    Starting Oracle Universal Installer...

    Checking Temp space: must be greater than 80 MB. Actual 34157 MB Passed
    Checking swap space: must be greater than 150 MB. Actual 7807 MB Passed
    Checking monitor: must be configured to display at least 256 colors
    >>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<

    >>> Ignoring required pre-requisite failures. Continuing...

    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-03-04_07-50-30PM. Please wait ...[oracle@oca grid]$ No protocol specified
    Exception in thread "main" java.lang.NoClassDefFoundError
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:164)
    at java.awt.Toolkit$2.run(Toolkit.java:821)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804)
    at com.jgoodies.looks.LookUtils.isLowResolution(Unknown Source)
    at com.jgoodies.looks.LookUtils.(Unknown Source)
    at com.jgoodies.looks.plastic.PlasticLookAndFeel.(PlasticLookAndFeel.java:122)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:242)
    at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1783)
    at javax.swing.UIManager.setLookAndFeel(UIManager.java:480)
    at oracle.install.commons.util.Application.startup(Application.java:758)
    at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:164)
    at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181)
    at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:265)
    at oracle.install.ivw.crs.driver.CRSInstaller.startup(CRSInstaller.java:96)
    at oracle.install.ivw.crs.driver.CRSInstaller.main(CRSInstaller.java:103)

    ReplyDelete

leave your message if you need help ...

Related Posts with Thumbnails