vmware + centos 7安装vmtools时提示The path "" is not a valid path to the xxx kernel header

在安装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

重启系统之后再次进行安装
这里写图片描述
这里输入no
接下来也是输入no
这里写图片描述
最后一路到底就可以安装成功了

http://hellolb.top

原文地址:https://www.cnblogs.com/liuurick/p/10713724.html