目前共有1篇帖子。 字體大小:較小 - 100% (默認)▼  內容轉換:不轉換▼
 
點擊 回復
17 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)
 

本帖信息

點擊數:17 回複數:0
評論數: ?
作者:巨大八爪鱼
最後回復:巨大八爪鱼
最後回復時間:2025-6-18 14:39
 
©2010-2025 Purasbar Ver2.0
除非另有聲明,本站採用創用CC姓名標示-相同方式分享 3.0 Unported許可協議進行許可。