有时,在输入了make menuconfig后看到如下出错信息:
root@ubuntu:/home/share/work/uClinux-dist# make menuconfig
Makefile:268: warning: overriding commands for target `linux'
Makefile:256: warning: ignoring old commands for target `linux'
config/mkconfig > config.in
make -C /home/share/work/uClinux-dist/config/scripts/lxdialog all
make[1]: Entering directory `/home/share/work/uClinux-dist/config/scripts/lxdialog'
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
-e
>> Unable to find the Ncurses libraries.
>>
>> You must have Ncurses installed in order
>> to use 'make menuconfig'
make[1]: *** [ncurses] Error 1
make[1]: Leaving directory `/home/share/work/uClinux-dist/config/scripts/lxdialog'
make: *** [menuconfig] Error 2
碰到这种情况,可以输入命令:
sudo apt-get install ncurses-dev
如果你已经是root ,就没有必要 sudo 了。待安装完毕后,再执行make menuconfig命令就可以了!