Buildroot运行make menuconfig时报错:Unable to find the ncurses libraries(如何打开 Buildroot 配置界面?)

在Ubuntu16.04系统中,执行'makemenuconfig'时遇到错误,提示缺少ncurses库和相关头文件。为了解决这个问题,需要通过终端运行'sudo apt-get update'更新软件源,然后执行'sudo apt-get install ncurses-dev'安装ncurses库。完成安装后,再次运行'makemenuconfig',问题得到解决,可以正常进行配置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Unable to find the ncurses libraries or the required header files. required header files. ‘make menuconfig’ requires the ncurses libraries. Install ncurses (ncurses-devel) and try again.

[root@ubuntu /home/yg/rv/sdk/rv1.8/rv1126_rv1109/buildroot]1# make menuconfig
mkdir -p /home/yg/rv/sdk/rv1.8/rv1126_rv1109/buildroot/output/build/buildroot-config/lxdialog
PKG_CONFIG_PATH="" make CC="/usr/bin/gcc" HOSTCC="/usr/bin/gcc" \
    obj=/home/yg/rv/sdk/rv1.8/rv1126_rv1109/buildroot/output/build/buildroot-config -C support/kconfig -f Makefile.br mconf
make[1]: Entering directory '/home/yg/rv/sdk/rv1.8/rv1126_rv1109/buildroot/support/kconfig'
 *** Unable to find the ncurses libraries or the
 *** required header files.
 *** 'make menuconfig' requires the ncurses libraries.
 *** 
 *** Install ncurses (ncurses-devel) and try again.
 *** 
Makefile:199: recipe for target '/home/yg/rv/sdk/rv1.8/rv1126_rv1109/buildroot/output/build/buildroot-config/dochecklxdialog' failed
make[1]: *** [/home/yg/rv/sdk/rv1.8/rv1126_rv1109/buildroot/output/build/buildroot-config/dochecklxdialog] Error 1
make[1]: Leaving directory '/home/yg/rv/sdk/rv1.8/rv1126_rv1109/buildroot/support/kconfig'
Makefile:889: recipe for target '/home/yg/rv/sdk/rv1.8/rv1126_rv1109/buildroot/output/build/buildroot-config/mconf' failed
make: *** [/home/yg/rv/sdk/rv1.8/rv1126_rv1109/buildroot/output/build/buildroot-config/mconf] Error 2

那是因为我们有东西没安装,

ubuntu 16.04下终端运行:

sudo apt-get update
sudo apt-get install ncurses-dev

然后再运行make menuconfig,成功进来了

在这里插入图片描述

参考文章:Unable to find the ncurses libraries的解决办法

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Dontla

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值