Ubuntu 12.x-13.x安装VMware&…

来源:互联网 发布:lol数据分析平台 编辑:程序博客网 时间:2024/05/17 00:10
Ubuntu 13.04安装VMware Tools,解决无法找到kernel header path的问题
 
Ubuntu 13.04 安装 VMware Tools,运行vmware-config-tools.pl 时,总是提示
The path "" is not valid.
What is the location of the directory of C header files that matchyour running
kernel?
输入 /usr/src/linux-headers-3.8.0-26-generic/include 或/lib/modules/3.8.0-26-generic/build/include 都提示“The path ... is not valid.”。
 
用了半天时间才找到解决方案 555....分享一下。
 
1. 更新或安装linux headers
sudo apt-get update && sudo apt-get install build-essentiallinux-headers-$(uname -r)
 
2. 关联文件,就是因为找不到这个几个文件,vmware tools才认为路径无效的。
cd /lib/modules/$(uname -r)/build/include/linux
sudo ln -s ../generated/utsrelease.h
sudo ln -s ../generated/autoconf.h
sudo ln -s ../generated/uapi/linux/version.h
 
3. 再次执行安装就ok啦,运行vmware-config-tools.pl 也没问题了
sudo ./vmware-install.pl
原创粉丝点击