在make menuconfig时,之前遇到一个问题大概如下:
scripts/kconfig/mconf.c:91: error: static declaration of 'current_menu' follows non-static declaration
scripts/kconfig/lkc.h:63: error: previous declaration of 'current_menu' was here
这个问题主要是gcc版本的问题,你可以看下源码中readme一般就有说需要什么版本的gcc
后来下的源码与gcc版本一致了,又出现了这个问题:
*** 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[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2
尝试着 yum install ncurses 貌似不行
后来才发现原来ncurses-devel也需要安装
所以两步解决 yum install ncurses
yum install ncursed-devel