设置 | 登录 | 注册

目前共有1篇帖子。

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() {}

内容转换:

回复帖子
内容:
用户名: 您目前是匿名发表。
验证码:
看不清?换一张
©2010-2025 Purasbar Ver3.0 [手机版] [桌面版]
除非另有声明,本站采用知识共享署名-相同方式共享 3.0 Unported许可协议进行许可。