起始
執行 make menuconfig 有錯誤發生
錯誤:
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
make[1]: *** [scripts/kconfig/dochecklxdialog] 錯誤 1
make: *** [menuconfig] 錯誤2
可以看出,是因為找不到 ncurses 導致的錯誤。那麼嘗試安裝 ncurses
$sudo apt-get install ncurses
信息:
正在讀取軟件包列表... 完成
正在分析軟件包的依賴關系樹
讀取狀態信息... 完成
現在沒有可用的軟件包 ncurses , 但是它被其他的軟件包引用了。
這可能意味著這個缺失的軟件包可能已被廢棄,
或者只能在其他發布源中找到
E: 軟件包 ncurses 還沒有可供安裝的候選者
再試:
$sudo apt-get install libncurses*
信息:
正在讀取軟件包列表... 完成
正在分析軟件包的依賴關系樹
讀取狀態信息... 完成
注意,根據正則表達式“libncurses*” 選中了 libncurses4
注意,根據正則表達式“libncurses*” 選中了 libncurses5
注意,根據正則表達式“libncurses*” 選中了 libncurses-ruby1.8
注意,根據正則表達式“libncurses*” 選中了 libncurses-ryby1.9
注意,根據正則表達式“libncurses*” 選中了 libncurses-dev
注意,根據正則表達式“libncurses*” 選中了 libncursesw5-dbg
注意,根據正則表達式“libncurses*” 選中了 libncursesw5-dev
注意,根據正則表達式“libncurses*” 選中了 libncurses-ruby
注意,根據正則表達式“libncurses*” 選中了 libncurses5-dbg
注意,根據正則表達式“libncurses*” 選中了 libncurses5-dev
注意,根據正則表達式“libncurses*” 選中了 libncursesw5
已經不需要下列自動安裝的軟件包:
libchewing3-data ttf-wqy-zenhei scim-chewing thunderbird-locale-zh-tw language-support-translations-zh
libchewing3 xfonts-wqy openoffice.org-l10n-zh-cn openoffice.org-l10n-zh-tw openoffice.org-help-zh-cn
openoffice.org-help-zh-tw language-support-fonts-zh
使用‘apt-get autoremove’ 來刪除它們。
將會安裝下列額外的軟件包:
libncurses-ruby libncurses-ruby1.8 libncurses-ruby1.9 libncurses4 libncurses5-dbg libncurses5-dev
libncursesw5-dbg libncursesw5-dev libruby1.8 libruby1.9 ruby1.8 ruby1.9
建議安裝的軟件包:
rdoc1.8 ri1.8 ruby1.8-examples rdoc1.9 ri1.9 ruby1.9-examples
下列【新】軟件包將被安裝:
libncurses-ruby libncurses-ruby1.8 libncurses-ruby1.9 libncurses4 libncurses5-dbg libncurses5-dev
libncursesw5-dbg libncursesw5-dev libruby1.8 libruby1.9 ruby1.8 ruby1.9
共升級了0個軟件包,新安裝了12個軟件包,要卸載0個軟件包,有60個軟件未被升級。
需要下載8868kB的軟件包。
操作完成後,會消耗掉33.9MB的額外磁盤空間。
您希望繼續執行嗎?[Y/n]
選擇Y繼續執行,完成後,執行sudo make menuconfig,OK!!
不過make xconfig還是不行
$ sudo make xconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
CHECK qt
*
* Unable to find the QT3 installation. Please make sure that
* the QT3 development package is correctly installed and
* either install pkg-config or set the QTDIR environment
* variable to the correct location.
*
HOSTCC scripts/kconfig/conf.o
sed < scripts/kconfig/lkc_proto.h > scripts/kconfig/lkc_defs.h 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/'
HOSTCC scripts/kconfig/kconfig_load.o
HOSTCC scripts/kconfig/kxgettext.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
make[1]: *** 沒有規則可以創建“scripts/kconfig/qconf.o” 需要的目標“scripts/kconfig/.tmp_qtcheck” 。 停止。
make: ***[xconfig] 錯誤2
知道在正常步驟下,除了安裝ncurses外,還要安裝build-essential 和 kernel-package
好吧,先開始查詢一下,從kernel-package開始吧,畢竟帶著kernel,估計比較重要