使用Ubuntu编译内核make menuconfig的时候出现下列错误:
HOSTCC scripts/kconfig/mconf.o
In file included from scripts/kconfig/mconf.c:23:0:
scripts/kconfig/lxdialog/dialog.h:38:20: fatal error: curses.h: No such file or directory
compilation terminated.
scripts/Makefile.host:108: recipe for target 'scripts/kconfig/mconf.o' failed
make[1]: *** [scripts/kconfig/mconf.o] Error 1
Makefile:541: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2
原因:所使用的Ubuntu系统不支持图形显示,缺少ncurses库
解决方法:执行下列命令安装ncurses库
sudo apt-get install libncurses5-dev