vim - 找不到软件包 libncurses5-dev

标签 vim ubuntu-10.04

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

checking --with-tlib argument... empty: automatic terminal library selection

checking for tgetent in -lncurses... no

checking for tgetent in -ltermlib... no

checking for tgetent in -ltermcap... no

checking for tgetent in -lcurses... no no 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 package libncurses5-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/

相关文章:

Vim:ci(像ci“?

node.js - 使用 Upstart 运行 node.js 服务器导致 'terminated with status 127' 上的 'ubuntu 10.04'

apache - 名称虚拟主机 * :80 has no VirtualHosts

linux - 如何获取/etc/security/limits.conf 更改反射(reflect)在 headless 用户下运行的进程?

vim - 在 Vim 中重置缓冲区

vim - 如何在 GVIM 的插入模式下删除旧文本

editor - 强制他在同一窗口中打开所有文件(使用 vim 和 cscope)

通过 NERDTree 插入图像标签的 VIM 插件

linux - 在 ubuntu 机器上需要 "ls -al/"的结果(最好是 10.4)

ruby-on-rails - 警告 : Insecure world writable dir