There is currently 1 post.
Font size: Small - 100% (Default)  Content converter: No conversion
 
Clicks Replies
867 0
fedora42系统下busybox-1.36.1 make menuconfig时提示Unable to find the ncurses libraries
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 1 Posted at: 6/18/25 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() {}

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.
(Shortcut key: Ctrl+Enter)
Post Information
Clicks: 867 Replies: 0
Author: 巨大八爪鱼
Last reply: 巨大八爪鱼
Last reply time: 6/18/25 14:39
Bar Good Posts
Announcements