Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2896057
  • 博文数量: 599
  • 博客积分: 16398
  • 博客等级: 上将
  • 技术积分: 6875
  • 用 户 组: 普通用户
  • 注册时间: 2009-11-30 12:04
个人简介

WINDOWS下的程序员出身,偶尔也写一些linux平台下小程序, 后转行数据库行业,专注于ORACLE和DB2的运维和优化。 同时也是ios移动开发者。欢迎志同道合的朋友一起研究技术。 数据库技术交流群:58308065,23618606

文章分类

全部博文(599)

文章存档

2014年(12)

2013年(56)

2012年(199)

2011年(105)

2010年(128)

2009年(99)

分类: Oracle

2012-08-24 09:34:05

搭建一个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]$


阅读(13236) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~