微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

原文地址:https://www.jb51.cc/ubuntu/353879.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐