升级CentOS遇到Unable to find the ncurses libraries or the required header files错误

   昨天的文章,在有的entOS机器上执行遇到了问题:

[root@YZSJHL64-200 linux-3.11.4]# make mrproper
[root@YZSJHL64-200 linux-3.11.4]# cp /boot/config-* /usr/src/kernels/
[root@YZSJHL64-200 linux-3.11.4]# make menuconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.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

此时,需要执行yum install -y ncurses-devel

[root@YZSJHL64-200 ~]# yum install -y ncurses-devel
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ncurses-devel.x86_64 0:5.7-3.20090208.el6 will be installed
--> Finished Dependency Resolution


Install       1 Package(s)


Total download size: 642 k
Installed size: 1.7 M
Downloading Packages:
ncurses-devel-5.7-3.20090208.el6.x86_64.rpm                                                                                                                                            | 642 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : ncurses-devel-5.7-3.20090208.el6.x86_64                                                                                                                                                    1/1 
  Verifying  : ncurses-devel-5.7-3.20090208.el6.x86_64                                                                                                                                                    1/1 


Installed:
  ncurses-devel.x86_64 0:5.7-3.20090208.el6                                                                                                                                                                   


Complete!
[root@YZSJHL64-200 ~]# 

再次执行,make menuconfig成功,

[root@YZSJHL64-200 linux-3.11.4]# make menuconfig
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/lxdialog/checklist.o
  HOSTCC  scripts/kconfig/lxdialog/inputbox.o
  HOSTCC  scripts/kconfig/lxdialog/menubox.o
  HOSTCC  scripts/kconfig/lxdialog/textbox.o
  HOSTCC  scripts/kconfig/lxdialog/util.o
  HOSTCC  scripts/kconfig/lxdialog/yesno.o
  HOSTCC  scripts/kconfig/mconf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/mconf
scripts/kconfig/mconf Kconfig
#
# using defaults found in /boot/config-2.6.32-358.2.1.el6.x86_64

如果是在Ubuntu下遇到这个问题,执行:

sudo apt-get insatll ncurses-dev.

你可能感兴趣的:(TO,find,N,the,Unable)