在linux enterprise5 和 vmware 6。5的环境下安装oracle

但是vmare tools总是提示这个错误What is the location of the directory of C header files that match your running kernel

差头文件啊。。

然后发现一个强大的帖子。。。

说是差三个包。。挂载光驱后在/mnt/cdrom/Server中可以找到

1 kernel - 2.6 . 18 - 8 .el5.i686.rpm 
 

 
2 kernel - devel - 2.6 . 18 - 8 .el5.i686.rpm
 

 
3 kernel - xen - devel - 2.6 . 18 - 8
.el5.i686.rpm 就是这三个包。。安装好之后就可以安装VMWARE tools了。。

 

拷贝了一个文章里面的内容

我把这3个包拷贝到 /temp文件夹下面安装了。。

注意 命令

# mount /dev/cdrom /mnt/cdrom 挂载光驱 如果这个有问题 重新设置一下 ISO

cd /mnt/cdrom/Server

cp kernel - xen - devel - 2.6 . 18 - 8 .el5.i686.rpm /temp

cp kernel - 2.6 . 18 - 8 .el5.i686.rpm   /temp

cp kernel - devel - 2.6 . 18 - 8 .el5.i686.rpm  /temp

然后安装完成后,就可以安装vmware tools了 确定下去不会有问题了。。。

不过我这里安装还是有问题。。。但是最后强行重启虚拟机貌似vmwaretools就可以用了。。

杯具的事情总是在我这里发生。。


 

 

PS: rpm  - q kernel - devel 检查某个包是否被安装


http://www.cnitblog.com/Images/OutliningIndicators/None.gif

 [root@localhost VMware-tools ] # rpm  - ivh kernel - xen - devel - 2.6 . 18 - 8 .el5.i686.rpm  
 11 http://www.cnitblog.com/Images/OutliningIndicators/None.gif warning: kernel - xen - devel - 2.6 . 18 - 8 .el5.i686.rpm: Header V3 DSA signature: NOKEY,  key  ID  37017186
 12 http://www.cnitblog.com/Images/OutliningIndicators/None.gif Preparinghttp://www.cnitblog.com/Images/dot.gif                 ###########################################  [100%]
 13 http://www.cnitblog.com/Images/OutliningIndicators/None.gif     1 :kernel - xen - devel       ###########################################  [100%]
 14 http://www.cnitblog.com/Images/OutliningIndicators/None.gif [root@localhost VMware-tools] # uname  - r
 15 http://www.cnitblog.com/Images/OutliningIndicators/None.gif 2.6 . 18 - 8 .el5xen
 16 http://www.cnitblog.com/Images/OutliningIndicators/None.gif [root@localhost VMware-tools] # rpm  - q kenel - devel
 17 http://www.cnitblog.com/Images/OutliningIndicators/None.gif package kenel - devel  is   not  installed
 18 http://www.cnitblog.com/Images/OutliningIndicators/None.gif [root@localhost VMware-tools] # ls
 19 http://www.cnitblog.com/Images/OutliningIndicators/None.gif kernel - 2.6 . 18 - 8 .el5.i686.rpm            VMwareTools - 6.0 . 0 - 45731 .tar.gz
 20 http://www.cnitblog.com/Images/OutliningIndicators/None.gif kernel - xen - devel - 2.6 . 18 - 8 .el5.i686.rpm  vmware - tools - distrib
 21 http://www.cnitblog.com/Images/OutliningIndicators/None.gif VMwareTools - 6.0 . 0 - 45731 .i386.rpm
 22 http://www.cnitblog.com/Images/OutliningIndicators/None.gif [root@localhost VMware-tools] # rpm  - ivh kernel -
 23 http://www.cnitblog.com/Images/OutliningIndicators/None.gif kernel - 2.6 . 18 - 8 .el5.i686.rpm
 24 http://www.cnitblog.com/Images/OutliningIndicators/None.gif kernel - xen - devel - 2.6 . 18 - 8 .el5.i686.rpm
 25 http://www.cnitblog.com/Images/OutliningIndicators/None.gif [root@localhost VMware-tools ] # rpm  - ivh kernel - 2.6 . 18 - 8 .el5.i686.rpm  
 26 http://www.cnitblog.com/Images/OutliningIndicators/None.gif warning: kernel - 2.6 . 18 - 8 .el5.i686.rpm: Header V3 DSA signature: NOKEY,  key  ID  37017186
 27 http://www.cnitblog.com/Images/OutliningIndicators/None.gif Preparinghttp://www.cnitblog.com/Images/dot.gif                 ###########################################  [100%]
 28 http://www.cnitblog.com/Images/OutliningIndicators/None.gif     1 :kernel                 ###########################################  [100%]
 29 http://www.cnitblog.com/Images/OutliningIndicators/None.gif [root@localhost VMware-tools] # uname  - r
 30 http://www.cnitblog.com/Images/OutliningIndicators/None.gif 2.6 . 18 - 8 .el5xen
 31 http://www.cnitblog.com/Images/OutliningIndicators/None.gif [root@localhost VMware-tools] # rpm  - q kernel - devel
 32 http://www.cnitblog.com/Images/OutliningIndicators/None.gif package kernel - devel  is   not  installed
 33 http://www.cnitblog.com/Images/OutliningIndicators/None.gif [root@localhost VMware-tools] # ls
 34 http://www.cnitblog.com/Images/OutliningIndicators/None.gif kernel - 2.6 . 18 - 8 .el5.i686.rpm        kernel - xen - devel - 2.6 . 18 - 8 .el5.i686.rpm  VMwareTools - 6.0 . 0 - 45731 .tar.gz
 35 http://www.cnitblog.com/Images/OutliningIndicators/None.gif kernel - devel - 2.6 . 18 - 8 .el5.i686.rpm  VMwareTools - 6.0 . 0 - 45731 .i386.rpm        vmware - tools - distrib
 36 http://www.cnitblog.com/Images/OutliningIndicators/None.gif [root@localhost VMware-tools] rpm  - ivh kernel - devel - 2.6 . 18 - 8 .el5.i686.rpm 
 37 http://www.cnitblog.com/Images/OutliningIndicators/None.gif warning: kernel - devel - 2.6 . 18 - 8 .el5.i686.rpm: Header V3 DSA signature: NOKEY,  key  ID  37017186
 38 http://www.cnitblog.com/Images/OutliningIndicators/None.gif Preparinghttp://www.cnitblog.com/Images/dot.gif                 ###########################################  [100%]
 39 http://www.cnitblog.com/Images/OutliningIndicators/None.gif     1 :kernel - devel           ###########################################  [100%]
 40 http://www.cnitblog.com/Images/OutliningIndicators/None.gif [root@localhost VMware-tools] # uname  - r
 41 http://www.cnitblog.com/Images/OutliningIndicators/None.gif 2.6 . 18 - 8 .el5xen
 42 http://www.cnitblog.com/Images/OutliningIndicators/None.gif [root@localhost VMware-tools] # rpm  - q kernel - devel
 43 http://www.cnitblog.com/Images/OutliningIndicators/None.gif kernel - devel - 2.6 . 18 - 8 .el5
 44 http://www.cnitblog.com/Images/OutliningIndicators/None.gif [root@localhost VMware-tools] # ls
 45 http://www.cnitblog.com/Images/OutliningIndicators/None.gif kernel - 2.6 . 18 - 8 .el5.i686.rpm            VMwareTools - 6.0 . 0 - 45731 .i386.rpm
 46 http://www.cnitblog.com/Images/OutliningIndicators/None.gif kernel - devel - 2.6 . 18 - 8 .el5.i686.rpm      VMwareTools - 6.0 . 0 - 45731 .tar.gz
 47 http://www.cnitblog.com/Images/OutliningIndicators/None.gif kernel - xen - devel - 2.6 . 18 - 8 .el5.i686.rpm  vmware - tools - distrib
 48 http://www.cnitblog.com/Images/OutliningIndicators/None.gif [root@localhost VMware-tools] # cd vmware - tools - distrib /
 49 http://www.cnitblog.com/Images/OutliningIndicators/None.gif [root@localhost vmware-tools-distrib] # ls
 50 http://www.cnitblog.com/Images/OutliningIndicators/None.gif bin  doc  etc  FILES  INSTALL  installer  lib  vmware - install.pl
 51 http://www.cnitblog.com/Images/OutliningIndicators/None.gif [root@localhost vmware-tools-distrib] # . / vmware - install.pl 

 


Logo

更多推荐