linux終端錯誤:Unable to find the ncurses
libraries or the required header files解決
在終端執行make mebuconfig 出現以下錯誤:
[root@bogon linux-2.6.35.7]# make menuconfig HOSTCC scripts/basic/fixdep HOSTCC scripts/basic/docproc HOSTCC scripts/basic/hash 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] 錯誤 1 make: *** [menuconfig] 錯誤 2
解決方法:
1)、apt-get的主流Linux系統包括Debian和Ubuntu變異版本
sudo apt-get install ncurses-dev
2)、有yum源的安裝
sudo yum install -y ncurses-devel
然后就可以用make menuconfig命令來打開菜單設置了: