2014-01-23 156 views
1

使用的Linux内核3.13编译失败

$make config 

我尝试编译使用

$make 

整个Linux内核然而,它抛出一个错误如下配置中的.conf各种选项之后:

[email protected]:/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. 
[email protected]:/LinuxKernel/linux-3.13# 

我试图通过使用搜索.conf:

$find -name ".conf" 

然而它没有结果。但由于make config的工作,我假设.config必须存在的地方。

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

+3

这个问题似乎是脱离主题,因为它是关于Linux管理员,并可能在unix.stackexchange.com更好 –

+1

@Chris,我认为它超越了Linux管理。我遇到从源代码编译内核的问题。我相信只有Linux内核开发人员可以令人信服地解决这个问题。 – Ace

回答

4

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

该错误消息表示,它已经

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

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

make gconfig 

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

+0

非常感谢回复。我有gconfig的问题,它需要GTK + 2.0库。我目前正在研究它。 – Ace

+2

你也可以尝试menuconfig。这是一个类似于gconfig的基于文本的配置器。在那里,你也可以选择个人选项,而不需要经历其他所有问题。它只需要ncurses,IIRC。 –

+0

谢谢我能够使用make menuconfig生成.config文件,然后生成作品。我想我在理解上的差距是.config文件必须使用前面提到的工具生成,然后才能调用make来编译内核,请纠正我,如果我错了 - 这是第一次。 – Ace