View previous topic :: View next topic |
Author |
Message |
cwc Veteran
Joined: 20 Mar 2006 Posts: 1312 Location: Tri-Cities, WA USA
|
Posted: Thu Aug 27, 2015 3:11 am Post subject: libtinfo.so.5: cannot open shared object Arduino [solved] |
|
|
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 |
|
|
grosgood n00b
Joined: 01 Feb 2015 Posts: 22 Location: Brooklyn, NY
|
Posted: Thu Aug 27, 2015 8:01 am Post subject: libtinfo.so.5: cannot open shared object Arduino |
|
|
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.
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 |
|
|
cwc Veteran
Joined: 20 Mar 2006 Posts: 1312 Location: Tri-Cities, WA USA
|
Posted: Thu Aug 27, 2015 11:38 am Post subject: |
|
|
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 |
|
|
cwc Veteran
Joined: 20 Mar 2006 Posts: 1312 Location: Tri-Cities, WA USA
|
Posted: Mon Aug 31, 2015 12:38 am Post subject: solved |
|
|
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 |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Mon Aug 31, 2015 8:02 am Post subject: |
|
|
please edit your first post and add [solved] to the title, ty |
|
Back to top |
|
|
shanehou n00b
Joined: 13 Jul 2013 Posts: 39
|
Posted: Tue Sep 15, 2015 5:44 pm Post subject: |
|
|
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 |
|
|
cwc Veteran
Joined: 20 Mar 2006 Posts: 1312 Location: Tri-Cities, WA USA
|
Posted: Wed Sep 16, 2015 11:40 am Post subject: |
|
|
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 |
|
|
lindegur Apprentice
Joined: 14 Aug 2004 Posts: 292 Location: Swiss mountains
|
Posted: Mon Jan 30, 2017 8:02 pm Post subject: |
|
|
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
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 |
|
|
|