gpt4 book ai didi

Linux 3.13 内核编译失败

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:29:07 26 4
gpt4 key购买 nike

使用

在 .conf 中配置各种选项后
$make config

我尝试使用编译整个 linux 内核

$make

但是它会抛出如下错误:

root@localbox:/LinuxKernel/linux-3.13# make
scripts/kconfig/conf --silentoldconfig Kconfig
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `relocs'.
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
root@localbox:/LinuxKernel/linux-3.13#

我尝试使用以下方法搜索 .conf:

$find -name ".conf"

但是没有结果。但是由于 make config 工作,我假设 .config 必须存在于某处。

请告诉我如何克服这个烦人的问题。我是第一次这样做,我不确定在尝试编译内核之前是否必须安装任何依赖项。非常感谢您的反馈。

最佳答案

make config 肯定有一些错误,例如磁盘已满或您使用 Ctrl-C 中止了它。 .config 文件(不是 .conf)就在主目录中。

错误信息已经说明了

*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").

有几个基于文本(config、oldconfig、menuconfig)和图形(xconfig、gconfig)的配置程序。您可能想选择一个图形化的并运行它,例如

make gconfig

这些图形配置器还有助于避免所有数百个不相关的问题。选择完所需的选项后,不要忘记保存 .config 文件并再次尝试编译内核和模块。

关于Linux 3.13 内核编译失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21321256/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com