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

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

问题描述

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

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

关于安装什么的提示很多,但我似乎找不到任何能解决我的问题的软件包.

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所述

sudo apt-get install libtinfo-dev 

为我解决了同样的问题.

solved the same problem for me.

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

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