关于Kernel4.16编译错误

关于Kernel4.16编译错误

我在我的新笔记本电脑联想 Ideapad 320 上安装了 Ubuntu 16.04。我尝试编译新的内核版本 4.16,同时执行制作菜单配置显示此错误:

Unable to find the ncurses libraries or the required header files.
'make menuconfig' requires the ncurses libraries.

Install ncurses (ncurses-devel or libncurses-dev 
depending on your distribution) and try again.

scripts/kconfig/Makefile:206: recipe for target 'scripts/kconfig/dochecklxdialog' failed
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
Makefile:514: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2

之后我在网上搜索,发现 Ncurses 需要安装。然后我也安装了它

sudo apt-get install libncurses5
sudo apt-get install libncurses5-dev

但结果是一样的,都是错误。

答案1

谢谢你的回复 Vlad spirin

是的,它也有效

然后我找到了我的编译过程的解决方案

“sudo apt-get install --reinstall bison libbison-dev flex libfl-dev”

如果我安装上述软件包,它就可以正常工作。

相关内容