1. 程式人生 > >vmware + centos 7安裝vmtools時提示The path "" is not a valid path to the xxx kernel header

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