标签:the path "" is not a valid path to the 3.10.0-229.4.2.el7.x86_64 kernel headers.
Mac下面安装 CentOS7.1[RHEL7.1] 一切顺利的VMware tools,在Windows 2012 VMware Workstation11下面居然报错,简直是崩溃。
CentOS7.1[RHEL7.1]系统本身自带open-vm-tools,但是不支持复制粘贴,太麻烦了,需要重新安装VMware Tools。
居然找不到Kernel header。
Searching for a valid kernel header path... The path "" is not a valid path to the 3.10.0-229.4.2.el7.x86_64 kernel headers.
后来翻阅文档如下解决:
#yum install kernel-devel-3.10.0-229.4.2.el7.x86_64 -y #cd /usr/src/kernels/ #ll 总用量 4 drwxr-xr-x. 22 root root 4096 6月 8 23:40 3.10.0-229.4.2.el7.x86_64
建立以下链接:
ln /usr/src/kernels/3.10.0-229.4.2.el7.x86_64/include/generated/uapi/linux/version.h /usr/src/kernels/3.10.0-229.4.2.el7.x86_64/include/linux/version.h
再次安装,终于不报错了。
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]
直接回车顺利完活。
本文出自 “知识改变命运科技改变生活” 博客,请务必保留此出处http://leoshi.blog.51cto.com/152597/1659886
The path "" is not a valid path to the 3.10.0-229.4.2.el7.x86_64 kernel headers.
标签:the path "" is not a valid path to the 3.10.0-229.4.2.el7.x86_64 kernel headers.
原文地址:http://leoshi.blog.51cto.com/152597/1659886