错误log
[root@localhost 3.10.0-862.el7.x86_64]# make menuconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/bin2c
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] 错误 1
make: *** [menuconfig] 错误 2
解决方案
安装ncurses-devel软件包(注意使用管理员权限)
yum install ncurses-devel
[root@localhost 3.10.0-862.el7.x86_64]# yum install ncurses-devel
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.aliyun.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 ncurses-devel.x86_64.0.5.9-14.20130511.el7_4 将被 安装
--> 解决依赖关系完成
依赖关系解决
================================================================================================================================================================================
Package 架构 版本 源 大小
================================================================================================================================================================================
正在安装:
ncurses-devel x86_64 5.9-14.20130511.el7_4 base 712 k
事务概要
================================================================================================================================================================================
安装 1 软件包
总下载量:712 k
安装大小:2.1 M
Is this ok [y/d/N]: y
Downloading packages:
警告:/var/cache/yum/x86_64/7/base/packages/ncurses-devel-5.9-14.20130511.el7_4.x86_64.rpm: 头V3 RSA/SHA256 Signature, 密钥 ID f4a80eb5: NOKEY
ncurses-devel-5.9-14.20130511.el7_4.x86_64.rpm 的公钥尚未安装
ncurses-devel-5.9-14.20130511.el7_4.x86_64.rpm | 712 kB 00:00:00
从 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 检索密钥
导入 GPG key 0xF4A80EB5:
用户ID : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>"
指纹 : 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
软件包 : centos-release-7-5.1804.el7.centos.x86_64 (@anaconda)
来自 : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
是否继续?[y/N]:y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : ncurses-devel-5.9-14.20130511.el7_4.x86_64 1/1
验证中 : ncurses-devel-5.9-14.20130511.el7_4.x86_64 1/1
已安装:
ncurses-devel.x86_64 0:5.9-14.20130511.el7_4
完毕!