欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Ubuntu下交叉编译make menuconfig时出错:Unable to find the ncurses libraries or the required header files.

程序员文章站 2022-03-11 22:52:31
...

一、问题描述:Ubuntu下交叉编译make menuconfig时出错:“Unable to find the ncurses libraries or the required header files.”,如下:

[email protected]:~/work/product/ok335xD/program/project/kernel/kernel/kernel-3.2$ 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]: *** [/home/ms/work/product/ok335xD/program/project/kernel/kernel/kernel-3.2/scripts/kconfig/Makefile:190: scripts/kconfig/dochecklxdialog] Error 1
make: *** [Makefile:493: menuconfig] Error 2
[email protected]:~/work/product/ok335xD/program/project/kernel/kernel/kernel-3.2$

二、问题分析:缺少依赖的库。

三、解决办法:安装依赖的包。

sudo apt-get install libncurses5-dev -y