make menuconfig时显示error:'make menuconfig' requires the ncurses libraries.

完整的错误信息如下:

zzh@ubuntu14:~/gem5/x86dist/linux-2.6.28.4$ make menuconfig
 *** 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

然后我就根据提示安装ncurses

zzh@ubuntu14:~/gem5/x86dist/linux-2.6.28.4$ sudo apt-get install ncurses
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package ncurses is not available,but is referred to by another package.
This may mean that the package is missing,has been obsoleted,or
is only available from another source

E: Package 'ncurses' has no installation candidate

试过apt-get update、apt-get upgrade等都没有解决问题,后来搜索了一圈,是要安装下面这个,才解决问题:

zzh@ubuntu14:~/gem5/x86dist/linux-2.6.28.4$ sudo apt-get install libncurses5-dev

问题解决~~~这样就可以执行make menuconfig

相关文章

目录前言一、创建Hadoop用户二、更新apt和安装Vim编辑器三、...
原文连接:https://www.cnblogs.com/yasmi/p/5192694.html ...
电脑重启后,打开VirtualBox,发现一直用的虚拟机莫名的消失...
参见:https://blog.csdn.net/weixin_38883338/article/deta...
Ubuntu 18.04 LTS 已切换到 Netplan 来配置网络接口。Netpla...
介绍每个 Web 服务都可以通过特定的 URL 在 Internet 上访问...