web-dev-qa-db-ja.com

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

コマンドがうまくいかない場合は、別の場所で別の問題が発生している可能性があります。他に何かを見つけたら、気軽に報告してください。

3
Jim