它说它需要 ncurses 库,但我已经安装了这些库。
$ make menuconfig
find vendors -mindepth 2 '(' -name .svn -prune ')' -o -type f -name Kconfig -print | sed 's:^:source ../:' > vendors/Kconfig
config/mkconfig > Kconfig
KCONFIG_NOTIMESTAMP=1 /home/developer/altera/nios2-linux/uClinux-dist/config/kconfig/mconf Kconfig
*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.
make[1]: Entering directory `/home/developer/altera/nios2-linux/uClinux-dist'
KCONFIG_NOTIMESTAMP=1 make ARCH=nios2 CROSS_COMPILE=nios2-linux-gnu- O=/home/developer/altera/nios2-linux/uClinux-dist/linux-2.6.x -C ../linux-2.6 menuconfig
make[2]: Entering directory `/home/developer/altera/nios2-linux/linux-2.6'
GEN /home/developer/altera/nios2-linux/uClinux-dist/linux-2.6.x/Makefile
*** 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[4]: *** [scripts/kconfig/dochecklxdialog] Error 1
make[3]: *** [menuconfig] Error 2
make[2]: *** [sub-make] Error 2
make[2]: Leaving directory `/home/developer/altera/nios2-linux/linux-2.6'
make[1]: *** [linux_menuconfig] Error 2
make[1]: Leaving directory `/home/developer/altera/nios2-linux/uClinux-dist'
make: *** [menuconfig] Error 2
看起来我已经明白了:
sudo apt-get install ncurses-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libncurses5-dev' instead of 'ncurses-dev'
libncurses5-dev is already the newest version (6.0+20160213-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
安装库,它应该足以绕过错误编译器给你。
如果该命令没有解决问题,那么其他地方可能会出现另一个问题。如果您发现任何其他内容,请随时报告。