找不到包 libncurses5-dev
在 ubuntu 10.04 LTS 上安装 Vim 7.3 时,遇到如下错误
检查 --with-tlib 参数... 空:自动终端库 选择
正在检查 -lncurses 中的 tgetent... 没有
正在检查 -ltermlib 中的 tgetent... 没有
正在检查 -ltermcap 中的 tgetent... 没有
正在检查 -lcurses 中的 tgetent... 否 未找到终端库
检查 tgetent()...配置: 错误:未找到!
需要安装终端库;例如 ncurses。 或者使用 --with-tlib 指定库的名称。
然后我用谷歌搜索发现我需要安装libncurses-dev,所以我输入
$ sudo apt-get install libncurses-dev
软件包 libncurses-dev 不可用,但被引用
另一个包。这可能意味着包裹丢失了,已经
已过时,或只能从其他来源获得
E:软件包 libncurses-dev 没有安装候选
当我将 libncurses-dev 更改为 libncurses5-dev 时,我收到错误
$ sudo apt-get install libncurses5-dev
E:找不到包 libncurses5-dev
那么发生了什么?
谢谢。
While installing Vim 7.3 on ubuntu 10.04 LTS, I encounter an error as below
checking --with-tlib argument...
empty: automatic terminal library
selectionchecking for tgetent in -lncurses...
nochecking for tgetent in -ltermlib...
nochecking for tgetent in -ltermcap...
nochecking for tgetent in -lcurses... no
no terminal library foundchecking 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.
and then I googled and found that I need to install libncurses-dev, so I typed
$ 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
When I change libncurses-dev to libncurses5-dev, I got error
$ sudo apt-get install libncurses5-dev
E: Couldn't find package
libncurses5-dev
So what happened?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
当然已解决,与您最初的问题并不真正相关,但可能会对某人有所帮助:)
检查您是否已安装 libncurses5-dev 软件包
这应该给你类似的东西:
这意味着该软件包已安装
与以下结果相同:
如果没有:
Then to configure vim with maximum options:
Certainly solved and not really related to your initial problem but might help someone :)
Check that you have libncurses5-dev package installed
This should give you something like:
which here means that the package is installed
Same result with:
If not:
Then to configure vim with maximum options:
转到系统 ->管理->软件源并确保您检查了所有相关源。然后执行 apt-get update
这可能会有所帮助:
http://www.liberiangeek.net/2010/06/configuring-software-sources-ubuntu-10-04-lucid-lynx-receive-updatespatches/
Go to Sytem -> Administration -> Software Sources and make sure that you have all the relevant sources checked. Then do a
apt-get update
This might help:
http://www.liberiangeek.net/2010/06/configuring-software-sources-ubuntu-10-04-lucid-lynx-receive-updatespatches/
修复配置错误:错误:centos 上缺少 libncurses5-dev
[root@centos601 ~]# yum install ncurses-devel
http://centostoday.com/configure-error-libncurses5-dev-missing.html
Fix Error configure: error: libncurses5-dev is missing on centos
[root@centos601 ~]# yum install ncurses-devel
http://centostoday.com/configure-error-libncurses5-dev-missing.html