我在red hat 4.5 版本上安装Oracle10g时,遇到了libXp.so.6: cannot open shared object file: No such file or directory错误,错误信息如下:
[oracle@study database]$ ./runInstaller
\u6b63\u5728\u542f\u52a8 Oracle UniversalInstaller...
\u6b63\u5728\u68c0\u67e5\u5b89\u88c5\u7a0b\u5e8f\u8981\u6c42...
\u68c0\u67e5\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c:\u5fc5\u987b\u662fredhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 orasianux-2
\u672a\u901a\u8fc7 <<<<
>>>\u5ffd\u7565\u672a\u901a\u8fc7\u7684\u5fc5\u9700\u5148\u51b3\u6761\u4ef6\u3002\u7ee7\u7eed...
\u51c6\u5907\u4ece\u4ee5\u4e0b\u5730\u5740\u542f\u52a8Oracle Universal Installer /tmp/OraInstall2011-08-30_03-26-27PM.\u8bf7\u7a0d\u5019...[oracle@study database]$ Oracle Universal Installer,\u7248\u672c 10.2.0.1.0 \u6b63\u5f0f\u7248
\u7248\u6743\u6240\u6709 (c) 1999, 2005,Oracle\u3002\u4fdd\u7559\u6240\u6709\u6743\u5229\u3002
Exception java.lang.UnsatisfiedLinkError:/tmp/OraInstall2011-08-30_03-26-27PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6:cannot open shared object file: No such file or directory occurred..
java.lang.UnsatisfiedLinkError:/tmp/OraInstall2011-08-30_03-26-27PM/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)
atoracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.<init>(OiifmGraphicInterfaceManager.java:222)
at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:193)
atoracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:202)
atoracle.sysman.oii.oiic.OiicInstaller.getInterfaceManager(OiicInstaller.java:436)
atoracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:926)
at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:866)
Exception in thread "main"java.lang.NoClassDefFoundError
at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.<init>(OiifmGraphicInterfaceManager.java:222)
atoracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:193)
at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:202)
atoracle.sysman.oii.oiif.oiifm.OiifmAlert.<clinit>(OiifmAlert.java:151)
atoracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:984)
at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:866)
原因是缺少支持打印的图形化动态链接库libXp.so.6,是一个系统安装包。
对于red hat 4.5系统
可以直接安装包 libXp-1.0.0-8.1.el5.i386.rpm ,在系统光盘中有。
例如:
[root@study ]#ls -l /usr/lib/libXp.so.6
ls: /usr/lib/libXp.so.6: No such file ordirectory
[root@study ]# 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%]
[root@study ]#
安装完成后,问题解决。
也可以通过其他机器把这个/usr/lib/libXp.so.6 文件拷贝过来,也一样可以解决问题.