VMware Fusion8下CentOS7.1 安装vmtools报错kernel header path
VMware Fusion8+CentOS7.1安裝vmtools
??? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ---找不到gcc和kernel header path的解決辦法
環境:
OSX 10.11.2
VMware Fusion 8.0.2
CentOS 7.1
錯誤:
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.
解決方法:
1.安裝依賴包
安裝vmtools前,配置好光盤源后安裝gcc和kernel header相關包
yum -y install gcc gcc-c++ kernel-headers kernel-devel
2.重啟CentOS
3.再次安裝vmtools
?
上面的命令搞定后,再進行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
然后設置虛擬機共享目錄后即可在CentOS 7的/mnt/hgfs下看到共享目錄
轉載于:https://www.cnblogs.com/lixuebin/p/10814277.html
總結
以上是生活随笔為你收集整理的VMware Fusion8下CentOS7.1 安装vmtools报错kernel header path的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 开灯问题---------简单模拟
- 下一篇: 计算程序执行时间