无法编译,缺少 libncurses5-dev

无法编译,缺少 libncurses5-dev

当我尝试时

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-devncurses-devel?不是libncurses5-dev

您使用的是哪个发行版/版本?

看起来是一个在 Ubuntu 16.04 中libncurses-dev启动的虚拟包。 libncurses5-devFedora 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 

相关内容