编译环境:centos6.9 ,gcc ,export TERM="vt100"
发现menuconfig过程中有如下错误。
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/mconf
HOSTCC scripts/kconfig/lxdialog/checklist.o
In file included from scripts/kconfig/lxdialog/checklist.c:24:0:
scripts/kconfig/lxdialog/dialog.h:31:20: fatal error: curses.h: No such file or directory
#include CURSES_LOC
^
compilation terminated.
make[2]: *** [scripts/kconfig/lxdialog/checklist.o] Error 1
make[1]: *** [menuconfig] Error 2
make: *** [menuconfig] Error 2
参考文档:https://www.cnblogs.com/Rainingday/p/7249395.html
需要安装ncurses-devel包,执行命令:
yum install ncurses-devel -y
第一种 如果您用的是Ubuntu系统 就安装这个包 sudo apt-get install libncurses5-dev
第二种 如果您用的是rhel系列 就安装这个包 ncurses-devel这个包 就可以了
解决问题。