gpt4 book ai didi

vim - 找不到软件包 libncurses5-dev

转载 作者:行者123 更新时间:2023-12-05 02:24:58 25 4
gpt4 key购买 nike

在 ubuntu 10.04 LTS 上安装 Vim 7.3 时,遇到如下错误

checking --with-tlib argument...empty: automatic terminal libraryselection

checking for tgetent in -lncurses...no

checking for tgetent in -ltermlib...no

checking for tgetent in -ltermcap...no

checking for tgetent in -lcurses... nono terminal library found

checking for tgetent()... configure:error: NOT FOUND!

  You need to install a terminal library; for example ncurses.

Or specify the name of the library with --with-tlib.

然后我用谷歌搜索,发现我需要安装 libncurses-dev,所以我输入了

$ sudo apt-get install libncurses-dev

Package libncurses-dev 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 libncurses-dev has no installation candidate

当我将 libncurses-dev 更改为 libncurses5-dev 时,出现错误

$ sudo apt-get install libncurses5-dev

E: Couldn't find packagelibncurses5-dev

那到底发生了什么?

谢谢。

最佳答案

当然解决了,与您最初的问题并没有真正相关,但可能会对某人有所帮助 :)

检查你是否安装了 libncurses5-dev 包

<ul>sudo aptitude search %p libncurses</ul>


这应该给你这样的东西:

i libncurses5 - Bibliothèques partagées pour l'utilisation d'un terminal
i libncurses5-dev - developer's libraries for ncurses

这里表示安装包

同样的结果:

<ul>find /usr -name "libncurse*"</ul>


如果不是:

<ul>sudo apt-get install libncurses5-dev</ul>

然后用最大选项配置 vim:

<ul>./configure --with-features=huge --with-tlib=ncurses</ul>

关于vim - 找不到软件包 libncurses5-dev,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5961062/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com