Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Link error: "Cannot find -ltinfo" on Ubuntu 12.04 on a 32-bit arm processor

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.

I have done

sudo apt-get install libncurses5-dev

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".

All help is appreciated

/Henrik

like image 634
Henrik Avatar asked Jan 15 '14 12:01

Henrik


2 Answers

As mentioned by lucasg

sudo apt-get install libtinfo-dev 

solved the same problem for me.

like image 195
Gerbrand Avatar answered Nov 09 '22 12:11

Gerbrand


When you cross compile the nurses library, configure this option --with-termlib. It shall install libtinfo into your target location.

like image 32
Sri Balaji S Avatar answered Nov 09 '22 11:11

Sri Balaji S