Welcome 微信登录

首页 / 数据库 / MySQL / 安装Oracle遇到libXp.so.6: cannot open shared object file

搭建一个Oracle测试环境,运行runInstaller遇到libXp.so.6: cannot open shared object file错误。
  1. [oracle@dbserver database]$ ./runInstaller
  2. Starting Oracle Universal Installer...

  3. Checking installer requirements...

  4. Checking operating system version: must be RedHat-3, SUSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
  5.                                       Passed


  6. All installer requirements met.

  7. Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-08-24_09-24-19AM. Please wait ...[oracle@dbserver database]$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2012-08-24_09-24-19AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
  8.         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
  9.         at java.lang.ClassLoader.loadLibrary0(Unknown Source)
  10.         at java.lang.ClassLoader.loadLibrary(Unknown Source)
  11.         at java.lang.Runtime.loadLibrary0(Unknown Source)
  12.         at java.lang.System.loadLibrary(Unknown Source)
  13.         at sun.security.action.LoadLibraryAction.run(Unknown Source)
  14.         at java.security.AccessController.doPrivileged(Native Method)
  15.         at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
  16.         at sun.awt.DebugHelper.<clinit>(Unknown Source)
  17.         at java.awt.Component.<clinit>(Unknown Source)
查询了一下发现是由于少了libXp包导致的。
  1. [root@dbserver CentOS]# uname -a
  2. Linux dbserver 2.6.18-128.el5 #1 SMP Wed Jan 21 10:41:14 EST 2009 x86_64 x86_64 x86_64 GNU/Linux

  3. [root@dbserver CentOS]# rpm -ivh libXp-1.0.0-8.1.el5.x86_64.rpm
  4. warning: libXp-1.0.0-8.1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
  5. Preparing... ########################################### [100%]
  6.    1:libXp ########################################### [100%]
重新运行runInstaller还是报错。
  1. [oracle@dbserver database]$ ./runInstaller
  2. Starting Oracle Universal Installer...

  3. Checking installer requirements...

  4. Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
  5.                                       Passed


  6. All installer requirements met.

  7. Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-08-24_09-27-15AM. Please wait ...[oracle@dbserver database]$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2012-08-24_09-27-15AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: wrong ELF class: ELFCLASS64
  8.         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
  9.         at java.lang.ClassLoader.loadLibrary0(Unknown Source)
  10.         at java.lang.ClassLoader.loadLibrary(Unknown Source)
  11.         at java.lang.Runtime.loadLibrary0(Unknown Source)
  12.         at java.lang.System.loadLibrary(Unknown Source)
  13.         at sun.security.action.LoadLibraryAction.run(Unknown Source)
  14.         at java.security.AccessController.doPrivileged(Native Method)
  15.         at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
  16.         at sun.awt.DebugHelper.<clinit>(Unknown Source)
  17.         at java.awt.Component.<clinit>(Unknown Source)
然后我又装了一个32位的libXp包。
  1. [root@dbserver CentOS]# rpm -ivh libXp-1.0.0-8.1.el5.i386.rpm
  2. warning: libXp-1.0.0-8.1.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
  3. Preparing... ########################################### [100%]
  4.    1:libXp ########################################### [100%]
再次运行runInstaller,问题解决。
  1. [oracle@dbserver database]$ ./runInstaller
  2. Starting Oracle Universal Installer...

  3. Checking installer requirements...

  4. Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
  5.                                       Passed


  6. All installer requirements met.

  7. Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-08-24_09-27-52AM. Please wait ...[oracle@dbserver database]$
Redhat5.3安装Oracle Database 10g Release2升级到10.2.0.4Oracle 10g的catalog配置相关资讯      Oracle安装问题  本文评论 查看全部评论 (0)
表情: 姓名: 字数