安装oracle数据库软件时,报错“libXt.so.6&libXtst.so.6: cannot open shared object file”

时间:2022-12-03 14:55:57
问题描述:安装oracle数据库软件时,报错“libXt.so.6&libXtst.so.6: cannot open shared object file”,如下所示:
系统:rhel 6.5 64位
数据库:oracle 10.2.0.1 64位
--问题1重现.
[oracle@leo-10g-ogg 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/OraInstall2022-12-03_10-27-46AM. Please wait ...[oracle@leo-10g-ogg database]$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2022-12-03_10-27-46AM/jre/1.4.2/lib/i386/libawt.so: libXt.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)
--异常原因为必要的包未安装,以下安装必要的包.
[root@leo-10g-ogg Packages]# rpm -ivh libICE-1.0.6-1.el6.i686.rpm
warning: libICE-1.0.6-1.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%]
1:libICE ########################################### [100%]
[root@leo-10g-ogg Packages]# rpm -ivh libuuid-2.17.2-12.14.el6.i686.rpm
warning: libuuid-2.17.2-12.14.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%]
1:libuuid ########################################### [100%]
[root@leo-10g-ogg Packages]# rpm -ivh libSM-1.2.1-2.el6.i686.rpm
warning: libSM-1.2.1-2.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%]
1:libSM ########################################### [100%]
[root@leo-10g-ogg Packages]# rpm -ivh libXt-1.1.3-1.el6.i686.rpm
warning: libXt-1.1.3-1.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%]
1:libXt ########################################### [100%]
--再次安装数据库软件,报错“libXtst.so.6: cannot open shared object file”
[oracle@leo-10g-ogg 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/OraInstall2022-12-03_10-36-49AM. Please wait ...[oracle@leo-10g-ogg database]$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2022-12-03_10-36-49AM/jre/1.4.2/lib/i386/libawt.so: libXtst.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)
--问题依然是存在安装包未安装,以下安装必要的包.
[root@leo-10g-ogg Packages]# rpm -ivh libXi-1.6.1-3.el6.i686.rpm
warning: libXi-1.6.1-3.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%]
1:libXi ########################################### [100%]
[root@leo-10g-ogg Packages]# rpm -ivh libXtst-1.2.1-2.el6.i686.rpm
warning: libXtst-1.2.1-2.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%]
1:libXtst ########################################### [100%]

说明:此后正常执行dbca建库.