![无法编译,缺少 libncurses5-dev](https://linux22.com/image/135954/%E6%97%A0%E6%B3%95%E7%BC%96%E8%AF%91%EF%BC%8C%E7%BC%BA%E5%B0%91%20libncurses5-dev.png)
当我尝试时
make menuconfig
我明白了
Install ncurses (ncurses-devel or libncurses-dev
当我尝试安装它时
Package libncurses5-dev is not available, but is referred to by another package.
aptitude search libncurses
i libncurses5 - shared libraries for terminal handling
i A libncurses5:i386 - shared libraries for terminal handling
i libncursesw5 - shared libraries for terminal handling (wi
在哪里可以找到 libncurses5-dev ?
答案1
你尝试过建议的方法吗?即libncurses-dev
或ncurses-devel
?不是libncurses5-dev
您使用的是哪个发行版/版本?
看起来是一个在 Ubuntu 16.04 中libncurses-dev
启动的虚拟包。 libncurses5-dev
Fedora 28 已ncurses-devel
在更新存储库中提供。
答案2
安装libncurses5-dev
,您的sources.list
(从评论中):
deb http://deb.debian.org/debian/ stretch main
跑步 :
# echo deb http://deb.debian.org/debian/ stretch main >> /etc/apt/sources.list
# apt update
# apt install libncurses5-dev