ubuntu18.04 安装 ncurses

编译uboot、kernel时候,make menuconfig会报错

$ make menuconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/mconf.o
:0:12: fatal error: ncurses.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

或者这样的错误 

 *** Unable to find the ncurses libraries or the
 *** required header files.
 *** 'make menuconfig' requires the ncurses libraries.
 *** 
 *** Install ncurses (ncurses-devel) and try again.
 *** 
scripts/kconfig/Makefile:200: recipe for target 'scripts/kconfig/dochecklxdialog' failed
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
Makefile:477: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2

需要安装如下内容

sudo apt-get install libncurses5-dev libncursesw5-dev


 

你可能感兴趣的:(ubuntu18.04 安装 ncurses)