编译linux内核时出错

在编译linux内核的时候使用make menuconfig 可能出现下面的错误

*** Unable to find the ncurses libraries or the
*** required header files.
*** ‘make menuconfig’ requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.

原因是因为缺少了ncurses库的支持,这个库是字符终端下屏幕控制的基本库。

解决方式是安装它。

debian衍生系的系统可以使用下面的指令来安装它:

sudo apt-get insatll ncurses-dev

Red Hat衍生系可以使用下面的指令来安装它:

yum install -y ncurses-devel

 

posted @ 2013-09-14 15:33  左懒  阅读(323)  评论(0编辑  收藏  举报