在安装vmtools时无意中出现了这样的问题
1.gcc错误
Searching for GCC…
The path “” is not valid path to the gcc binary.
2.内核头文件问题
Searching for a valid kernel header path…
The path “” is not a valid path to the xxx kernel headers.

这里我的解决方法是
先按 ctrl+终止命令
2.然后安装centos7所需要的内容
运行以下命令

yum -y update  
yum -y install kernel-headers kernel-devel gcc

重启系统之后再次进行安装
The path is not a valid path to the xxx kernel header
这里输入no
接下来也是输入no
The path is not a valid path to the xxx kernel header
最后一路到底就可以安装成功了
The path is not a valid path to the xxx kernel header

相关文章: