搭建一个ORACLE测试环境,运行runInstaller遇到libXp.so.6: cannot open shared object file错误。
- [oracle@dbserver database]$ ./runInstaller
- Starting 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
- Passed
- All installer requirements met.
- 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
- 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)
查询了一下发现是由于少了libXp包导致的。
- [root@dbserver CentOS]# uname -a
- 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
- [root@dbserver CentOS]# rpm -ivh libXp-1.0.0-8.1.el5.x86_64.rpm
- warning: libXp-1.0.0-8.1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
- Preparing... ########################################### [100%]
- 1:libXp ########################################### [100%]
重新运行runInstaller还是报错。
- [oracle@dbserver database]$ ./runInstaller
- Starting 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
- Passed
- All installer requirements met.
- 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
- 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)
然后我又装了一个32位的libXp包。
- [root@dbserver CentOS]# rpm -ivh libXp-1.0.0-8.1.el5.i386.rpm
- warning: libXp-1.0.0-8.1.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
- Preparing... ########################################### [100%]
- 1:libXp ########################################### [100%]
再次运行runInstaller,问题解决。
- [oracle@dbserver database]$ ./runInstaller
- Starting 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
- Passed
- All installer requirements met.
- Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-08-24_09-27-52AM. Please wait ...[oracle@dbserver database]$
阅读(13198) | 评论(0) | 转发(0) |