Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
libtinfo.so.5: cannot open shared object Arduino [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1312
Location: Tri-Cities, WA USA

PostPosted: Thu Aug 27, 2015 3:11 am    Post subject: libtinfo.so.5: cannot open shared object Arduino [solved] Reply with quote

I put the Arduino 1.6 IDE in /opt/. when I try to upload to an Arduino I get the following error:
/opt/arduino/hardware/tools/avr/bin/avrdude: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

I am trying to figure out what package has libtinfo.so.5..

I could emerge Arduino but I want to use Arduino IDE 1.6.

We use equery to find what packages depend on a package.
How to we find out what has libtinfo.so.5 in it?

Thanks,
cwc
_________________
Without diversity there can be no evolution:)


Last edited by cwc on Mon Aug 31, 2015 11:44 am; edited 1 time in total
Back to top
View user's profile Send private message
grosgood
n00b
n00b


Joined: 01 Feb 2015
Posts: 22
Location: Brooklyn, NY

PostPosted: Thu Aug 27, 2015 8:01 am    Post subject: libtinfo.so.5: cannot open shared object Arduino Reply with quote

Hi cwc

Seems you've almost answered your own question:

Quote:
We use equery to find what packages depend on a package.


So:
Code:
equery belongs libtinfo.so


will follow the mapping from the file libtinfo.so to its parent package **if** (big 'if') some installation via Portage's emerge command had installed libtinfo.so in the first place. But if libtinfo.so arrived through some other means (or if libtinfo.so doesn't exist) then equery will fail, as it requires the file<->package mappings that Portage maintains.
Code:
man equery

for more information.
Quote:
I put the Arduino 1.6 IDE in /opt/.

And, somewhat later...
Quote:
I could emerge Arduino but I want to use Arduino IDE 1.6

I can appreciate using the latest and greatest, but if these are pre-compiled binaries, then it is very possible that the prerequisites those binaries require are not in place. The error message that you are getting when you try to execute this particular binary can arise when (1) the dynamic link loader cannot find libtinfo.so anywhere on your library path, or (2) libtinfo.so exists, but the dynamic link loader discovers a version mis-match when it first opens the library file. Unfortunately, the link loader uses the same error message for both cases, which does confuse people.

It seems to me that your best recourse is to follow the instructions here: Arduino on Gentoo Linux, which look to be pretty comprehensive insofar as getting all of the perquisite pieces in place. Of course, at the end of the day, you will be emerging dev-embedded/arduino-1.0.5-r1, which is not the latest and greatest version, but it's the only one in the candy store at the moment.

Good luck and have fun with this.
_________________
Garry
Back to top
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1312
Location: Tri-Cities, WA USA

PostPosted: Thu Aug 27, 2015 11:38 am    Post subject: Reply with quote

I forgot about this: http://playground.arduino.cc/Linux/Gentoo
Thanks for the reply! I'll work on this at a slow pace.
cwc
_________________
Without diversity there can be no evolution:)
Back to top
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1312
Location: Tri-Cities, WA USA

PostPosted: Mon Aug 31, 2015 12:38 am    Post subject: solved Reply with quote

solved problem using arduino 1.6 in $/opt/arduino/arduino

ln -s /lib64/libncurses.so.5 /usr/lib/libtinfo.so.5
ln -s /usr/lib/libtinfo.so.5 /usr/lib/libtinfo.so

caution:
look at your libraries before you ln -s
_________________
Without diversity there can be no evolution:)
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Mon Aug 31, 2015 8:02 am    Post subject: Reply with quote

please edit your first post and add [solved] to the title, ty
Back to top
View user's profile Send private message
shanehou
n00b
n00b


Joined: 13 Jul 2013
Posts: 39

PostPosted: Tue Sep 15, 2015 5:44 pm    Post subject: Reply with quote

You may add USE flag 'tinfo' to sys-libs/ncurses and re-emerge it, then libtinfo.so will be installed in /usr/lib64/
Then you can use 'ln -s libtinfo.so.6.0 libtinfo.so.5'.
_________________
A man with two right arms.
Back to top
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1312
Location: Tri-Cities, WA USA

PostPosted: Wed Sep 16, 2015 11:40 am    Post subject: Reply with quote

shanehou wrote:
You may add USE flag 'tinfo' to sys-libs/ncurses and re-emerge it, then libtinfo.so will be installed in /usr/lib64/
Then you can use 'ln -s libtinfo.so.6.0 libtinfo.so.5'.



nice. thanks for the tip
_________________
Without diversity there can be no evolution:)
Back to top
View user's profile Send private message
lindegur
Apprentice
Apprentice


Joined: 14 Aug 2004
Posts: 292
Location: Swiss mountains

PostPosted: Mon Jan 30, 2017 8:02 pm    Post subject: Reply with quote

Doing the above, I got an invalid ELF header error.

I use a binary package directly from arduino to compile my 3D printer marlin software. The portage version is too old for it.
Since the problem is just avrdude, I solved the issue differently.

I first did
Code:
emerge avrdude

Then I renamed /home/......../arduino-1.8.1/hardware/tools/avr/bin/avrdude to something as avrdude_arduino (instead of deleting it)
Then I put in the directory /home/......../arduino-1.8.1/hardware/tools/avr/bin/ the symlink
Code:
ln -s /usr/bin/avrdude avrdude

This way the binary package arduino calls the emerged avrdude and does not complain.

The hack that I did is in my home directory where the arduino binary is. The Gentoo system is kept clean.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum