为了正常的体验网站,请在浏览器设置里面开启Javascript功能!

VMware tools安装Ubuntu11.04遇到找不到C header的问题解决

2017-09-01 2页 doc 13KB 5阅读

用户头像

is_731942

暂无简介

举报
VMware tools安装Ubuntu11.04遇到找不到C header的问题解决VMware tools安装Ubuntu11.04遇到找不到C header的问题解决 VMware tools安装Ubuntu11.04遇到找不到C header的问题解决 在Ubuntu 11.04上安装vmware tools,我这里主要遇到的问题都出现在以下这步中, What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include] 如果直接回车,会显示...
VMware tools安装Ubuntu11.04遇到找不到C header的问题解决
VMware tools安装Ubuntu11.04遇到找不到C header的问解决 VMware tools安装Ubuntu11.04遇到找不到C header的问题解决 在Ubuntu 11.04上安装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.38-8-generic,因此更改后的路径如下: /usr/src/linux-headers-2.6.38-8-generic/include 改后再回车,又出现如下问题: The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match your running kernel (version 2.6 . 38 - 8 -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.38-8-generic/include/linux/version.h ,而现在已经移 到了/usr/src/linux-headers-2.6.38-8-generic/include/generated/utsrelease.h。所以vmware tools 找不到这个变量的定义,修改的办法有两种: 1. 在version.h中添加 #define UTS_RELEASE "2.6.38-8-generic" 2. 直接将utsrelease.h拷贝回来,cp -p generated/utsrelease.h linux/utsrelease.h 修改后再回车,仍然存在问题: The path "/usr/src/linux-headers-2.6.38-8-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 这样修改完成后,应该就可以顺利安装了。
/
本文档为【VMware tools安装Ubuntu11.04遇到找不到C header的问题解决】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。 本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。 网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。

历史搜索

    清空历史搜索