fatal error: curses.h: No such file or directory

在Ubuntu-15.10上执行make menuconfig命令编译busybox-1.7.0时提示错误:

scripts/kconfig/lxdialog/dialog.h:31:20: fatal error: curses.h: No such file or directory
compilation terminated.
scripts/Makefile.host:120: recipe for target 'scripts/kconfig/lxdialog/checklist.o' failed
make[2]: *** [scripts/kconfig/lxdialog/checklist.o] Error 1
/home/lvxiao/Ftp/busybox/busybox-1.7.0/scripts/kconfig/Makefile:14: recipe for target 'menuconfig' failed
make[1]: *** [menuconfig] Error 2
Makefile:406: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2

这是因为ubuntu系统中缺少一个套件 ncurses devel ,把此套件安装下即可。

sudo apt-get install libncurses5-dev

你可能感兴趣的:(fatal error: curses.h: No such file or directory)