Ubuntu18.04下make menuconfig缺少ncurses库

时间:2021-06-25 16:56:33   收藏:0   阅读:0

问题描述:这类问题的解决办法,提示少什么我们直接用sudo apt-get install 安装缺少的东西即可

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

kent@hu:~/work/03-kernel/linux-4.15.1$ 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.
 *** 
scripts/kconfig/Makefile:202: recipe for target scripts/kconfig/dochecklxdialog failed
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
Makefile:504: recipe for target menuconfig failed
make: *** [menuconfig] Error 2

解决办法: apt-get install libncurses5-dev

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!