2014-01-23 145 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