make menuconfig错误的解决办法

 如果使用make menuconfig的方式配置内核,又碰巧系统没有安装ncurses库(ubuntu系统
默认就没有安装此库),就会出现错误,错误信息大体上如下:

*** 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
moran@linux:

解决方法很简单,安装ncurses库即可,ubuntu/debian系统可采用如下命令进行安装:

$sudo apt-get install libncurses5-dev

ncurses库是字符终端下屏幕控制的基本库,可能很多新开发的程序都不使用了,不过
如果要编译一些老程序,还经常用到。

posted @ 2015-02-10 10:08  瘋耔  阅读(1795)  评论(0编辑  收藏  举报
跳至侧栏