今天在OracleLinux5 上安装Oracle 10g的时候,报了下面这个错
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-12-31_09-06-20PM. Please wait ...[oracle@10gR2 database]$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2013-12-31_09-06-20PM/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.(Unknown Source)
at java.awt.Component.(Unknown Source)
之前同样的系统上安装11g还没有问题,比较奇怪,放狗查了一下,说是缺少 xorg-x11-deprecated-libs-6.8.2-1.EL.13.20.i386.rpm 这个rpm包。
详细参考: https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Tuning_and_Optimizing_Red_Hat_Enterprise_Linux_for_Oracle_9i_and_10g_Databases/chap-Oracle_9i_and_10g_Tuning_Guide-Oracle_10g_and_Linux_Installation_Errors_and_Troubleshooting.html
在OracleLinux5的介质里面找了一下,还没找到要的包,不过在OracleLinux4的介质里面还是找到了。
试着装了 xorg-x11-deprecated-libs-6.8.2-1.EL.13.20.i386.rpm
[root@10gR2 ~]# rpm -ivh xorg-x11-deprecated-libs-6.8.2-1.EL.13.20.i386.rpm
warning: xorg-x11-deprecated-libs-6.8.2-1.EL.13.20.i386.rpm: Header V3 DSA signature: NOKEY, key ID 0c98ff9d
Preparing... ########################################### [100%]
1:xorg-x11-deprecated-lib########################################### [100%]
再次执行 ./runInstaller,还是报同样的错误。
尝试把 xorg-x11-libs-6.8.2-1.0.1.EL.63.i386.rpm 包再装上,终于可以了。
另外,发现/etc 目录下面有oracle-release 和 redhat-release这2个版本记录文件,但是Oracle在检查时只会检查redhat-release,在这里面把大版本改成4就可以了。
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-12-31_09-06-20PM. Please wait ...[oracle@10gR2 database]$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2013-12-31_09-06-20PM/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.(Unknown Source)
at java.awt.Component.(Unknown Source)
之前同样的系统上安装11g还没有问题,比较奇怪,放狗查了一下,说是缺少 xorg-x11-deprecated-libs-6.8.2-1.EL.13.20.i386.rpm 这个rpm包。
详细参考: https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Tuning_and_Optimizing_Red_Hat_Enterprise_Linux_for_Oracle_9i_and_10g_Databases/chap-Oracle_9i_and_10g_Tuning_Guide-Oracle_10g_and_Linux_Installation_Errors_and_Troubleshooting.html
在OracleLinux5的介质里面找了一下,还没找到要的包,不过在OracleLinux4的介质里面还是找到了。
试着装了 xorg-x11-deprecated-libs-6.8.2-1.EL.13.20.i386.rpm
[root@10gR2 ~]# rpm -ivh xorg-x11-deprecated-libs-6.8.2-1.EL.13.20.i386.rpm
warning: xorg-x11-deprecated-libs-6.8.2-1.EL.13.20.i386.rpm: Header V3 DSA signature: NOKEY, key ID 0c98ff9d
Preparing... ########################################### [100%]
1:xorg-x11-deprecated-lib########################################### [100%]
再次执行 ./runInstaller,还是报同样的错误。
尝试把 xorg-x11-libs-6.8.2-1.0.1.EL.63.i386.rpm 包再装上,终于可以了。
另外,发现/etc 目录下面有oracle-release 和 redhat-release这2个版本记录文件,但是Oracle在检查时只会检查redhat-release,在这里面把大版本改成4就可以了。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22213086/viewspace-1066110/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/22213086/viewspace-1066110/