解决vmware fusion + centos 7安装vmtools时提示The path "" is not a valid path to the xxx kernel headers.

近日使用VMware fushion 8 + centos 7.0时,无法使用共享功能,所以必须安装vmtools。但是安装过程中有2个错误需要解决。

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 3.10.0-229.el7.x86_64 kernel headers.


解决方法:在安装vmtools前,先安装需要的文件

yum -y update
yum -y install kernel-headers kernel-devel gcc
reboot (安装完后要重启一下,很重要!)


上面的命令搞定后,再进行vmtools的安装。原本错误的地方变成了这样:

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...
Detected the kernel headers at 
"/lib/modules/3.10.0-229.4.2.el7.x86_64/build/include".
The path "/lib/modules/3.10.0-229.4.2.el7.x86_64/build/include" appears to be a
valid path to the 3.10.0-229.4.2.el7.x86_64 kernel headers.
Would you like to change it? [no] 


安装完成后可以看到提示:


The configuration of VMware Tools 9.9.2 build-2496486 for Linux for this 
running kernel completed successfully.

Enjoy,

--the VMware team


然后设置虚拟机共享目录后即可在/mnt/hgfs下看到共享目录

  • 16
    点赞
  • 33
    收藏
    觉得还不错? 一键收藏
  • 11
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 11
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值