installing vmware tools: the path is not valid path to the kernel headers终极解决方案

来源:互联网 发布:淘宝好友动态在哪里 编辑:程序博客网 时间:2024/05/01 02:23

在vmware中装ubuntu时遇到了这个问题,找了好多资料尝试都失败,最后在stackoverflow一个回答的回复中找到了解决方案:


http://stackoverflow.com/questions/18805697/installing-vmware-tools-not-recognizing-path-to-3-8-0-19-generic-kernel-files


the more accurate procedure is first to run: sudo apt-get install build-essential then sudo apt-get install linux-headers-$(uname -r) and only then: sudo ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h, after that just re-run sudo ./vmware-uninstall-tools.pl and it should work. The reason by the way is version.h is no longer under [kernelsource_path]/include/linux/version.h, but [kernelsource_path]include/generated/uapi/linux/version.h 


结论:找到的资料一定要看完整!!答案的评论也不能放过!!

0 0
原创粉丝点击