无法使用 ncurses 库

无法使用 ncurses 库

它说它需要 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.

答案1

安装库,它足以绕过编译器给你的错误。

sudo apt-get install libncurses5-dev

如果该命令不起作用,则可能是其他地方出现了其他问题。如果您发现其他问题,请随时报告。

相关内容