你好,游客 登录 注册 搜索
背景:
阅读新闻

安装Oracle遇到libXp.so.6: cannot open shared object file

[日期:2012-08-24] 来源:Linux社区  作者:TOMSYAN [字体: ]

搭建一个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]$
linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款