装了个ubuntu-11.04版本,用的是VMware精简版本的,所以支持不好。
转载这篇,搞定了
[日期:2011-03-29] 来源:Linux社区 作者:silvervi
以下问题的解决办法大多从网络上搜索得到,自己只是整理照搬过来而已。
在Ubuntu 10.10上安装vmware tools,我这里主要遇到的问题都出现在以下这步中,
What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]
如果直接回车,会显示 The path "/usr/src/linux/include" is not an existing directory.
因此,首先要更改该路径。这里很简单,首先用uname -r命令找到当前的linux内核版本,我这里的版本为2.6.35-25-generic,因此更改后的路径如下:
“/usr/src/linux-headers-2.6.35-25-generic/include
改后再回车,又出现如下问题:
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-25-generic/include/linux/version.h ,而现在已经移到了/usr/src/linux-headers-2.6.35-25-generic/include/generated/utsrelease.h。所以vmware tools找不到这个变量的定义,修改的办法有两种:
1. 在version.h中添加 #define UTS_RELEASE "2.6.35-25-generic"
2. 直接将utsrelease.h拷贝回来,cp -p generated/utsrelease.h linux/utsrelease.h
修改后再回车,仍然存在问题:
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.
根据提示可以知道,是因为找不到 linux/autoconf.h文件,这个文件在新的linux内核中被挪到了 generated文件夹中,因此修改的办法也很简单,直接将这个文件拷贝过来即可
cp -p generated/ autoconf .h linux/ autoconf .h
这样修改完成后,应该就可以顺利安装了。
分享到:
相关推荐
找了好久才找到的,国内还没有有下载 linux vmware patch linux ubuntu 11.04 11.10 vmware linux-2.6.39 and linux-3.0.1 patch vmware补丁
。。。
。。。
百度承不欺我,ubuntu-16.04.6-desktop-amd64.iso镜像文件,挣点积分换流量
最新的Ubuntu 11.04安装指南(详细图解)
ubuntu11.04的详细安装方法,其中包括自动分区和手动分区的步骤,希望能对广大用户有帮助!
最新桌面版乌班图更加人性化,效果和MAC OS相差无几了。 如果你不是微软的依赖者,我想该系统就是你的最佳选择了。 该种子来自乌班图官方服务器,可直接下载使用。速度可佳!
ubuntu11.04安装wine1.3的图文方法。 ubuntu11.04安装wine1.3的图文方法。 ubuntu11.04安装wine1.3的图文方法。 ubuntu11.04安装wine1.3的图文方法。
Ubuntu ssh在线安装 ssh 附带Ubuntu下载地址:http://mirror.lupaworld.com/ubuntu-releases//natty/ubuntu-11.04-desktop-i386.iso
Ubuntu11.04下安装ns-allinone-2.34的总结
这是我在在Ubunt-11.04上成功搭建hadoop-0.20.2集群云平后,写出来的实验指导,确实可用。我同实验室的同学按时这个实验指导已经成功做成了。
Ubuntu 11.04 安装后要做的20件事情 Ubuntu 11.04 安装后要做的20件事情 Ubuntu 11.04 安装后要做的20件事情
无线破解spoonwep-spoonwpa,支持ubuntu11.04,试验过了
在VMware Player 安装 ubuntu11.04全图解
硬盘全新安装ubuntu11.04 硬盘全新安装ubuntu11.04
ubuntu11.04上编译omap3530内核存在问题解决方法.使用的是天漠公司的sbc8100开发板
Linux Ubuntu 11.04 安装手册,主要说明分区和驱动
安装ubuntu11.04的安装,亲测可用,放心下载 Ubuntu(又称乌班图)是一个以桌面应用为主的开源GNU/Linux操作系统,Ubuntu 是基于Debian GNU/Linux,支持x86、amd64(即x64)、ARM和ppc架构,由全球化的专业开发团队...
Ubuntu 11.04 就发布了!Ubuntu 11.04 安装后如何快速配置?——–《Ubuntu 11.04 安装后要做的20件事情》,...若是你安装Ubuntu原先的版本,你需要升级你的版本到Ubuntu 11.04,参考此文章。接下来是我们要做的事情!