安装vmware tools时提示 /usr/src/linux/include找不到头文件的处理方法

问题:

What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]

如果直接回车,会显示 The path “/usr/src/linux/include” is not an existing directory.

 

解决办法:

yum -y install gcc gcc-c++ kernel-devel

然后在执行就ok了。