內核目錄中使用 make menuconfig 報錯:
[root@mylab 2.6.32-431.el6.i686]# make menuconfig
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
*** 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
網絡搜索解決方法爲:sudo: apt-get: command not found
apt是debian(ubuntu)的包管理器
在centos 中提示:sudo: apt-get: command not found
因爲在centos中管理軟件爲yum
使用:
yum install -y ncurses-devel
可解決。