ubuntu 安装 vmtools 方法
来源:互联网 发布:陈文光 清华大学 知乎 编辑:程序博客网 时间:2024/05/17 03:14
安装VMware可以改变虚拟机显示的大小,也可以让真机喝虚拟机实现字符串相互拷贝,相互分享共享目录......
步骤:
sudo ./vmware-install.pl
Console代码
1.What is the location of the directory of C header files that match your running
2.kernel? [/usr/src/linux/include] <直接按 Enter>
3.
4.The path "/usr/src/linux/include" is not an existing directory.
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] <直接按 Enter>
The path "/usr/src/linux/include" is not an existing directory.
由于 Kernel 版本是 APT 抓下來的最新版,所以会需要输入 “/usr/src/linux-headers-2.6.35-22-generic/include “
要注意的是,VMWare Tools 安装时会询问目前系统使用的 Kernel header,所以如果 /usr/src 下有多个 Kernel header 目录,最好先执行 “uname -r“ 指令,确认应该使用那个本版。另外可以不直接使用 “/usr/src/linux-headers-2.6.35-22-generic/include” ,先 “sudo ln -s /usr/src/linux /usr/src/linux-headers-2.6.35-22-generic/include”
Console代码
1.What is the location of the directory of C header files that match your running
2.kernel? [/usr/src/linux/include] /usr/src/linux-headers-2.6 . 35 - 22 -generic/include
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] /usr/src/linux-headers-2.6.35-22-generic/include
按回车以后,还是报错说,指定的Kernel headers喝当前系统使用的版本不匹配。
Console代码
1.The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
2.your running kernel (version 2.6 . 35 - 22 -generic). Even if the module were to
3.compile successfully, it would not load into the running kernel.
The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6.35-22-generic). Even if the module were to
compile successfully, it would not load into the running kernel.
但事实并不是不匹配,而是 Kernel 中有一个变量 UTS_RELEASE 的不存在了。以前这个定义放在 /usr/src/linux-headers-2.6.35-22-generic/include/linux/version.h ,而现在已经移到了/usr/src/linux-headers-2.6.35-22-generic/include/linux /utsrelease.h。所以简单的方法,我们只需要在version.h中添加 #define UTS_RELEASE "2.6.35-22-generic" (具体值使用 “uname -r“ 查看)
接下来继续,又会有新的错误提示!! -_-|| 找不到 autoconf.h 原因是因为 autoconf.h 不再VMware tools 安装程序预设的寻址目录中。
Console代码
1.The path "/usr/src/linux-headers-2.6.35-22-generic/include" is a kernel header
2.file directory, but it does not contain the file "linux/autoconf.h" as
3.expected. This can happen if the kernel has never been built, or if you have
4.invoked the "make mrproper" command in your kernel directory. In any case, you
5.may want to rebuild your kernel.
The path "/usr/src/linux-headers-2.6.35-22-generic/include" is a kernel header
file directory, but it does not contain the file "linux/autoconf.h" as
expected. This can happen if the kernel has never been built, or if you have
invoked the "make mrproper" command in your kernel directory. In any case, you
may want to rebuild your kernel.
可以简单的把它链接过来:
cd /usr/src/linux-headers-2.6.35-22-generic/include/linux
sudo ln -s ../generated/autoconf.h ./
然后应该能顺利完成安装了。
完成步骤:
sudo ln -s /usr/src/linux-headers-2.6.35-22-generic/ /usr/src/linux
/usr/src/linux-headers-2.6.35-22-generic/include/linux /utsrelease.h 添加 #define UTS_RELEASE "2.6.35-22-generic" (具体值使用 “uname -r“ 查看)
cd /usr/src/linux-headers-2.6.35-22-generic/include/linux
sudo ln -s ../generated/autoconf.h ./
- ubuntu 安装 vmtools 方法
- ubuntu VMtools安装方法
- Ubuntu系统下安装VMtools的方法
- ubuntu里安装VMTools的方法
- ubuntu里安装VMTools的方法
- Ubuntu中安装VMTools
- ubuntu 安装vmtools
- ubuntu安装vmtools
- Ubuntu安装VMtools
- Ubuntu下安装VMtools
- Ubuntu安装vmtools
- Ubuntu Vmtools 安装
- 为Ubuntu安装VMTools
- ubuntu下VMTools的安装
- ubuntu-13.04安装vmtools ssh
- VM下ubuntu安装vmtools
- VM下ubuntu安装vmtools
- linux下安装vmtools方法
- 【收集整理】request获取参数为中文乱码解法方法
- 硬盘检测工具MHDD修复硬盘无法识别故障
- Building Coder(Revit 二次开发) - 复制 Legend 组件
- zoj 2001 倒置输出
- 常用,易用,好看的第三方控件(.NET)
- ubuntu 安装 vmtools 方法
- videobalance 调整一个视频流的亮度、对比度、饱和度。
- 希尔(Shell)排序的C++实现代码
- 系统无法识别移动硬盘五种可能
- QT DOM方式读取xml文件(QDomElement)
- zoj 1489 2^x mod n = 1
- c# unicode 编码 中文转换 已测试
- linux内核中的Oops
- QT读取ini配置文件(QSettings)