近来要安装Oracle11G R2,操作系统为RHEL6.4,对于RHEL6.4系统没有经常使用,因为生产都用RHEL5,系统版本较为稳定,目前要安装Oracle,RHEL6.4系统已经安装完毕,系统安装都是自己依照习惯来安装rpm的软件包的依赖性的,待REHL6.4安装完毕,Oracle环境变量也都配置完成,以grid用户来运行xclock来检测图形化的安装条件时出现如下问题:

[grid@node1 ~]$ xclock
-bash: xclock: command not found

 先前以为是用户权限问题,切换至root用户还是同样问题,当时考虑是否安装xclock的rpm,通过查询确实没有安装,这里我用yum来安装软件,软件仓库提前已经配置完成,这里我就不说怎样配置YUM了,安装如下:

[root@node1 ~]# yum install xorg-x11-apps
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package xorg-x11-apps.x86_64 0:7.6-6.el6 will be installed
--> Processing Dependency: libXaw.so.7()(64bit) for package: xorg-x11-apps-7.6-6.el6.x86_64
--> Running transaction check
---> Package libXaw.x86_64 0:1.0.11-2.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package              Arch          Version             Repository         Size
================================================================================
Installing:
xorg-x11-apps        x86_64        7.6-6.el6           rhel-local        276 k
Installing for dependencies:
libXaw               x86_64        1.0.11-2.el6        rhel-local        178 k

Transaction Summary
================================================================================
Install       2 Package(s)

Total download size: 454 k
Installed size: 1.1 M
Is this ok [y/N]: y
Downloading Packages:
--------------------------------------------------------------------------------
Total                                           1.6 MB/s | 454 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
 Installing : libXaw-1.0.11-2.el6.x86_64                                   1/2
 Installing : xorg-x11-apps-7.6-6.el6.x86_64                               2/2
 Verifying  : libXaw-1.0.11-2.el6.x86_64                                   1/2
 Verifying  : xorg-x11-apps-7.6-6.el6.x86_64                               2/2

Installed:
 xorg-x11-apps.x86_64 0:7.6-6.el6

Dependency Installed:
 libXaw.x86_64 0:1.0.11-2.el6

Complete!


待安装完成后,切换至grid用户执行xclock,我的桌面弹出了xclock的时钟,这个小问题至此解决。