在新装的ubuntu中,配置编译Linux时,在make menuconfig时会出现缺失ncurses库的现象,错误信息如下:
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
*** Install ncurses (ncurses-devel) and try again.
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2
ubuntu/debian系统可采用如下命令进行安装:
sudo apt-get install libncurses5-dev
ncurses库是字符终端下屏幕控制的基本库,可能很多新开发的程序都不使用了,不过如果要编译一些老程序,还经常用到