内核编译--make menuconfig 报错的解决方法

来源:互联网 发布:东北农大网络教育 编辑:程序博客网 时间:2024/05/21 06:23
To build a kernel using make menuconfig, which ncurses package am I missing? The error indicates I'm missing ncurses-devel, but it's not available according to apt-get...

I have (from dpkg -S ncurses):
libncurses5: /usr/share/doc/libncurses5/README.Debian
ncurses-bin: /usr/share/doc/ncurses-bin
libncursesw5: /usr/share/doc/libncursesw5/changelog.Debian.gz
ncurses-base: /usr/share/doc/ncurses-base
libncurses5: /usr/share/doc/libncurses5

I'd like to build the Linux kernel using make menuconfig, but it fails with 

root@falcon:/usr/src/linux-2.6.28.7# 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] Error 1
make: *** [menuconfig] Error 2

I downloaded linux-2.6.28.7. 

It's been awhile since I built a kernel. What am I missing?

You need the development package libncurses5-dev:

sudo apt-get install libncurses5-dev
http://ubuntuforums.org/showthread.php?t=1097968