Console代码
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.
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代码
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
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代码
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.
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代码
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.
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 ./
然后应该能顺利完成安装了。
分享到:
相关推荐
ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9
ubuntu离线安装vim
ubuntu20.04安装QT 一、 安装cmake 二、 安装gcc和g++ 三、 下载QT 四、 安装QT 五、 故障解决
Ubuntu20.04和Ubuntu16.04等其他Ubuntu离线安装openssh-server 安装步骤: sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5.7_amd64.deb sudo dpkg -i openssh-client_8.4p1-6ubuntu1_amd64.deb sudo dpkg -i openssh-...
ubuntu怎么安装tar.gz,linux系统下安装程序的方法介绍。
ubuntu系统中使用离线源码安装包进行安装wireshark 安装详细步骤,以及安装过程中遇到的问题和解决方案
Ubuntu14.04 安装及使用:[1]制作安装U盘
Ubuntu18 安装Autoware教程支持文件,详细内容在:https://blog.csdn.net/qq_35813104/article/details/117412553
Ubuntu下安装 Source insight
ubuntu离线安装nfs
ubuntu在离线方式下安装搜狗输入法,搜狗输入法依赖fcitx相关包文件,此压缩文件中包括了这些依赖包,并测试通过,输入法安装成功。
Ubuntu DB2的安装步骤: 1.创建群组 2.创建用户 3.设置环境 4.安装
Ubuntu20.04安装Mininet和Ryu.pdf
ubuntu下安装JLINK详细过程及安装过程遇到问题的解决方法。软件包括:Install_AT91-ISP_v1.13 、 JLink_Linux_V422a 、 Setup_JLinkARM_V422a 、 JLinkV8固件
在Ubuntu上安装phpmyadmin,文档里面包括的截图
Ubuntu20.04安装vim出现的相关问题及解决方法
ubuntu20.04离线安装iperf3
ubuntu apt-get方法安装软件都是依赖网络的,而自己下载相应的软件包又可能存在依赖的问题,用这种方法可以在本地建立源,这样不用上网也可以采用apt-get方法安装软件又不用考虑依赖关系的问题
本文主要是在ubuntu 16.04环境下,如何安装 eclipse。
Ubuntu安装jdk环境 Ubuntu安装jdk环境 Ubuntu安装jdk环境