1

1.找不到gcc

安装一下即可:

yum install gcc

2.内核头文件找不到

错误信息:

Searching for GCC...
Detected GCC binary at "/bin/gcc".
The path "/bin/gcc" appears to be a valid path to the gcc binary.
Would you like to change it? [no] 
Searching for a valid kernel header path...
The path "" is not a valid path to the `3.10.0-229.el7.x86_64` kernel headers.
Would you like to change it? [yes]

网上查说要安装一下kernel-devel:

yum install kernel-devel

安装完在/user/src/kernels果然多了内核相关的目录:/3.10.0-514.10.2.el7.x86_64
但是这个新安装的更错误提示里面的版本不对。因此重新安装vmware-tools还是会报同样的错。

解决办法是网上找对应版本的安装包:

搜索: kernel-devel-[错误信息中要求的版本]
我这里具体就是: kernel-devel-3.10.0-229.el7.x86_64
顺便给个网址: http://rpm.pbone.net/

下载好rpm包后,传到centos7系统中,执行安装:

yum install kernel-devel-3.10.0-229.el7.x86_64.rpm

重新执行VMware Tools,成功!


煲煲菜
1.5k 声望155 粉丝

世上本没有bug,坑的人多了,也便成了bug