解决Ubuntu下make menuconfig错误

╰半夏微凉° 2022-08-19 12:25 479阅读 0赞

Ubuntu 下编译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.

***

make[1]: *** [scripts/kconfig/dochecklxdialog] 错误 1

make: *** [menuconfig] 错误 2

上述错误是说,执行make menuconfig 命令需要安装ncurses-dev。

Ncurses是一个能提供功能键定义、屏幕绘制以及基于文本终端的图形互动功能的动态库。

解决方法:

在命令行中输入:

  1. sudo apt-get install libncurses5-dev
  2. make menuconfig

发表评论

表情:
评论列表 (有 0 条评论,479人围观)

还没有评论,来说两句吧...

相关阅读