安裝grid時報錯:libXext.so.6: cannot open shared object file

君落塵發表於2014-09-26

安裝grid時,報錯資訊

[oracle@rac1 grid]$ ./runInstaller

Starting Oracle Universal Installer...

 

Checking Temp space: must be greater than 80 MB.   Actual 11245 MB    Passed

Checking swap space: must be greater than 150 MB.   Actual 4095 MB    Passed

Checking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-09-24_12-59-20AM. Please wait ...[oracle@rac1 grid]$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2014-09-24_12-59-20AM/jdk/jre/lib/i386/xawt/libmawt.so: libXext.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(ClassLoader.java:1751)

        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)

        at java.lang.Runtime.load0(Runtime.java:769)

        at java.lang.System.load(System.java:968)

        at java.lang.ClassLoader$NativeLibrary.load(Native Method)

        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)

        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668)

        at java.lang.Runtime.loadLibrary0(Runtime.java:822)

        at java.lang.System.loadLibrary(System.java:993)

        at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.awt.Toolkit.loadLibraries(Toolkit.java:1509)

        at java.awt.Toolkit.(Toolkit.java:1530)

        at com.jgoodies.looks.LookUtils.isLowResolution(Unknown Source)

        at com.jgoodies.looks.LookUtils.(Unknown Source)

        at com.jgoodies.looks.plastic.PlasticLookAndFeel.(PlasticLookAndFeel.java:122)

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Class.java:242)

        at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1783)

        at javax.swing.UIManager.setLookAndFeel(UIManager.java:480)

        at oracle.install.commons.util.Application.startup(Application.java:758)

        at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:164)

        at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181)

        at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:265)

        at oracle.install.ivw.crs.driver.CRSInstaller.startup(CRSInstaller.java:96)

        at oracle.install.ivw.crs.driver.CRSInstaller.main(CRSInstaller.java:103)

 

 

 

 

解決故障:這個問題是缺少包導致的,如下把缺少的包安裝上即可。
1、掛載光碟,使用yum安裝

mount /dev/cdrom /media

 

[root@rac1 Packages]# cat /etc/yum.repos.d/CentOS-Base.repo

# CentOS-Base.repo

#

# The mirror system uses the connecting IP address of the client and the

# update status of each mirror to pick mirrors that are updated to and

# geographically close to the client.  You should use this for CentOS updates

# unless you are manually picking other mirrors.

#

# If the mirrorlist= does not work for you, as a fall back you can try the

# remarked out baseurl= line instead.

#

#

 

[base]

name=CentOS-$releasever - Base

baseurl=file:///media/

enabled=1

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

 

 

[root@rac1 Packages]# yum install -y lib*

 

2、進入光碟單獨安裝

[root@rac1 Packages]# rpm -ivh libXext-1.3.1-2.el6.i686.rpm --nodeps --force

warning: libXext-1.3.1-2.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY

Preparing...                ########################################### [100%]

   1:libXext                ########################################### [100%]

[root@rac1 Packages]# rpm -ivh libX11-1.5.0-4.el6.i686.rpm --nodeps --force

warning: libX11-1.5.0-4.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY

Preparing...                ########################################### [100%]

   1:libX11                 ########################################### [100%]

[root@rac1 Packages]# rpm -ivh libxcb-1.8.1-1.el6.i686.rpm --nodeps --force

warning: libxcb-1.8.1-1.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY

Preparing...                ########################################### [100%]

   1:libxcb                 ########################################### [100%]

[root@rac1 Packages]# rpm -ivh libXau-1.0.6-4.el6.i686.rpm --nodeps --force

warning: libXau-1.0.6-4.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY

Preparing...                ########################################### [100%]

   1:libXau                 ########################################### [100%]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29819001/viewspace-1281446/,如需轉載,請註明出處,否則將追究法律責任。

相關文章