oracle10g 安裝遇到libXp.so.6: cannot open shared object file,sharedobject

來源:互聯網
上載者:User

oracle10g 安裝遇到libXp.so.6: cannot open shared object file,sharedobject

 

在安裝oracle10g的時候出現如下錯誤:

[oracle10@rac1 clusterware]$ ./runInstaller ********************************************************************************Please run the script rootpre.sh as root on all machines/nodes. The script can be found at the toplevel of the CD or stage-area. Once you have run the script, please type Y to proceedAnswer 'y' if root has run 'rootpre.sh' so you can proceed with Oracle Clusterware installation.Answer 'n' to abort installation and then ask root to run 'rootpre.sh'.********************************************************************************Has 'rootpre.sh' been run by root? [y/n] (n)yStarting Oracle Universal Installer...Checking installer requirements...Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2                                      PassedAll installer requirements met.Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-10-10_05-33-17PM. Please wait ...[oracle10@rac1 clusterware]$ Oracle Universal Installer, Version 10.2.0.1.0 ProductionCopyright (C) 1999, 2005, Oracle. All rights reserved.Exception java.lang.UnsatisfiedLinkError: /tmp/OraInstall2014-10-10_05-33-17PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory occurred..java.lang.UnsatisfiedLinkError: /tmp/OraInstall2014-10-10_05-33-17PM/jre/1.4.2/lib/i386/libawt.so: libXp.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.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 java.awt.Component.<clinit>(Unknown Source)        at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.<init>(OiifmGraphicInterfaceManager.java:222)        at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:193)        at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:202)        at oracle.sysman.oii.oiic.OiicInstaller.getInterfaceManager(OiicInstaller.java:436)        at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:926)        at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:866)Exception in thread "main" java.lang.NoClassDefFoundError        at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.<init>(OiifmGraphicInterfaceManager.java:222)        at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:193)        at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:202)        at oracle.sysman.oii.oiif.oiifm.OiifmAlert.<clinit>(OiifmAlert.java:151)        at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:984)        at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:866)


確實缺少lib:

安裝缺少lib:

[root@rac1 Packages]# rpm -ivh libXp-1.0.0-15.1.el6.libXp-1.0.0-15.1.el6.i686.rpm    libXp-1.0.0-15.1.el6.x86_64.rpm  [root@rac1 Packages]# rpm -ivh libXp-1.0.0-15.1.el6.i686.rpm warning: libXp-1.0.0-15.1.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEYerror: Failed dependencies:        libX11.so.6 is needed by libXp-1.0.0-15.1.el6.i686        libXau.so.6 is needed by libXp-1.0.0-15.1.el6.i686        libXext.so.6 is needed by libXp-1.0.0-15.1.el6.i686[root@rac1 Packages]# rpm -ivh libXp-1.0.0-15.1.el6.i686.rpm --nodepswarning: libXp-1.0.0-15.1.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEYPreparing...                ########################################### [100%]   1:libXp                  ########################################### [100%][root@rac1 Packages]# rpm -ivh libXp-1.0.0-15.1.el6.x86_64.rpm warning: libXp-1.0.0-15.1.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEYPreparing...                ########################################### [100%]   1:libXp                  ########################################### [100%][root@rac1 Packages]# 


重新執行安裝:

Exception java.lang.UnsatisfiedLinkError: /tmp/OraInstall2014-10-10_05-41-01PM/jre/1.4.2/lib/i386/libawt.so: libXt.so.6: cannot open shared object file: No such file or directory occurred..java.lang.UnsatisfiedLinkError: /tmp/OraInstall2014-10-10_05-41-01PM/jre/1.4.2/lib/i386/libawt.so: libXt.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.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 java.awt.Component.<clinit>(Unknown Source)        at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.<init>(OiifmGraphicInterfaceManager.java:222)        at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:193)        at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:202)        at oracle.sysman.oii.oiic.OiicInstaller.getInterfaceManager(OiicInstaller.java:436)        at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:926)        at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:866)Exception in thread "main" java.lang.NoClassDefFoundError        at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.<init>(OiifmGraphicInterfaceManager.java:222)        at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:193)        at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:202)        at oracle.sysman.oii.oiif.oiifm.OiifmAlert.<clinit>(OiifmAlert.java:151)        at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:984)        at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:866)[root@rac1 Packages]# 


繼續安裝所需lib:

[root@rac1 Packages]# rpm -ivh libXt-1.1.3-1.el6.i686.rpm --nodepswarning: libXt-1.1.3-1.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEYPreparing...                ########################################### [100%]   1:libXt                  ########################################### [100%][root@rac1 Packages]# 

註:缺啥就補啥

再次執行正常。


redhat enterprise 62 64位安裝oracle10g出現一下問題,解決方案

是不是你下載的oracle10g不是64位的?安裝版本要與作業系統相符合。
 
Ubuntu1210 安裝kernel時編譯代碼報錯:cannot open shared object file: no such file or directory

這裡有個簡單解決方案:
$sudo apt-get install lib32ncurses5 ia32-libs

我親自測試了,ok。
 

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.