Ubuntu 10.04 makemenuconfigエラー解決方法

1966 ワード

Ubuntu 10.04 makemenuconfigエラー解決方法
ubuntu 10.04 makemenuconfigで次のエラーが発生しました.
root@ubuntu:~/Resources/linux-2.6.32# make menuconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/docproc
  HOSTCC  scripts/basic/hash
  HOSTCC  scripts/kconfig/conf.o
scripts/kconfig/conf.c: In function ‘conf_askvalue’:
scripts/kconfig/conf.c:105: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
scripts/kconfig/conf.c: In function ‘conf_choice’:
scripts/kconfig/conf.c:307: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
  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] Error 1
make: *** [menuconfig] Error 2
処理方法:
root@ubuntu:~/Resources/linux-2.6.32# sudo apt-get install libncurses5-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  libncurses5-dev
0 upgraded, 1 newly installed, 0 to remove and 289 not upgraded.
Need to get 1,564kB of archives.
After this operation, 6,627kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ lucid/main libncurses5-dev 5.7+20090803-2ubuntu3 [1,564kB]
Fetched 1,564kB in 2min 37s (9,960B/s)                                         
Selecting previously deselected package libncurses5-dev.
(Reading database ... 122910 files and directories currently installed.)
Unpacking libncurses5-dev (from .../libncurses5-dev_5.7+20090803-2ubuntu3_i386.deb) ...
Processing triggers for man-db ...
Setting up libncurses5-dev (5.7+20090803-2ubuntu3) ...
は以上の方法で問題を解決することに成功したが、同じ方法はubuntu 10である.10の中ではいつも通じません.ここはapt-get updateの問題です.