目前共有1篇帖子。 字体大小:较小 - 100% (默认)▼  内容转换:不转换▼
 
点击 回复
27 0
fedora42系统下busybox-1.36.1 make menuconfig时提示Unable to find the ncurses libraries
一派掌门 二十级
1楼 发表于:2025-6-18 14:39

[oct1158@fed41-bh8f7e0 busybox-1.36.1]$ make menuconfig ARCH=arm
 *** 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[2]: *** [/home/oct1158/Downloads/busybox-1.36.1/scripts/kconfig/lxdialog/Makefile:15: scripts/kconfig/lxdialog/dochecklxdialog] Error 1
make[1]: *** [/home/oct1158/Downloads/busybox-1.36.1/scripts/kconfig/Makefile:14: menuconfig] Error 2
make: *** [Makefile:444: menuconfig] Error 2
[oct1158@fed41-bh8f7e0 busybox-1.36.1]$

 

解决方案:

修改scripts/kconfig/lxdialog/check-lxdialog.sh文件:

 46 # Check if we can link to ncurses
 47 check() {
 48         $cc -x c - -o $tmp 2>/dev/null <<'EOF'
 49 #include CURSES_LOC
 50 main() {}
 51 EOF

第50行改成int main() {}

回复帖子

内容:
用户名: 您目前是匿名发表
验证码:
(快捷键:Ctrl+Enter)
 

本帖信息

点击数:27 回复数:0
评论数: ?
作者:巨大八爪鱼
最后回复:巨大八爪鱼
最后回复时间:2025-6-18 14:39
 
©2010-2025 Purasbar Ver2.0
除非另有声明,本站采用知识共享署名-相同方式共享 3.0 Unported许可协议进行许可。