今天在编译安霸内核时碰到的一个bug
使用命令make menuconfig_public_linux
报错如下内容
*** 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] 错误 1
make: *** [menuconfig] 错误 2
上述错误是说,执行make menuconfig_public_linux 命令需要安装ncurses-dev
解决方案:
sudo apt-get install libncurses5-dev或是sudo apt-get install ncurses-dev
ncurses是一个能提供功能键定义(快捷键),屏幕绘制以及基于文本终端的图形互动功能的动态库
所以使用图形配置内核时,必须要安装这个补丁才可以。
一般情况下使用make menuconfig编译内核时,遇到相同情况同上。