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