链接错误:“找不到 -ltinfo"在 32 位 arm 处理器上的 Ubuntu 12.04 上 [英] Link error: "Cannot find -ltinfo" on Ubuntu 12.04 on a 32-bit arm processor

查看:29
本文介绍了链接错误:“找不到 -ltinfo"在 32 位 arm 处理器上的 Ubuntu 12.04 上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用 ncurses 为在 arm 上运行的 Ubuntu 12.04 编译一个小函数时,出现以下链接错误.错误是

I get the following link error when I'm compiling a small function using ncurses for an Ubuntu 12.04 running on arm. The error is

arm-linux-gnueabihf/bin/ld: cannot find -ltinfo

有很多关于安装什么的提示,但我似乎找不到任何适合我的 arm box 的软件包.

A lot of hints are floating around on what to install, but I can't seem to find any packages that does the trick for my arm box.

我已经完成了

sudo apt-get install libncurses5-dev

而且这不包含 tinfo 库.其他建议通常会导致库不可用但由另一个包引用"或没有安装候选".

And this does not contain the tinfo library. Other suggestions usually result in the library is "not available but referred by another package" or "has no installation candidate".

感谢所有帮助

/亨里克

推荐答案

如 lucasg 所述

As mentioned by lucasg

sudo apt-get install libtinfo-dev 

为我解决了同样的问题.

solved the same problem for me.

这篇关于链接错误:“找不到 -ltinfo"在 32 位 arm 处理器上的 Ubuntu 12.04 上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆