fatal error: curses.h: 没有那个文件或目录
编译内核前make menuconfig报错:ern@MI:~/kernel/linux-4.4.115$ make menuconfigHOSTCCscripts/kconfig/mconf.oIn file included from scripts/kconfig/mconf.c:23:0:scripts/kconfig/lxdialog/dialog.h:38:20: fa...
·
编译内核前make menuconfig报错:
ern@MI:~/kernel/linux-4.4.115$ 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: 没有那个文件或目录
compilation terminated.
scripts/Makefile.host:108: recipe for target 'scripts/kconfig/mconf.o' failed
make[1]: *** [scripts/kconfig/mconf.o] Error 1
Makefile:542: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2
是由于缺少libncurses5-dev。
sudo apt-get install libncurses5-dev
安装一下就可以解决了。
更多推荐
已为社区贡献1条内容
所有评论(0)