What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Asuswrt-Merlin 378.56_2 and Optware-NG - no 'libtinfo.so.5'-library

Huberer

Occasional Visitor
Hello,

I've just updated my RT-AC68U from the latest John's-fork to the latest Merlin version and I also have installed Optware-NG according to the how-to at hqt.ro (to my external usb-hdd). The first program I've installed was the text editor 'nano'. With John's fork I had no issues running this program (last time was some days ago).
But with the latest Asuswrt-Merlin (378.56_2) I get the error after executing the command (e.g. nano /jffs/scripts/services-start):
/tmp/mnt/optware/optware-ng.arm/bin/nano: can't load library 'libtinfo.so.5'

This is the only message I get and nano doesn't start.

Why do I get this error and how can I solve this?

Thanks in advance
Huberer
 
Try
Code:
ipkg --autoremove remove nano
ipkg install nano
I suspect libtinfo was upgraded, while nano remains not re-linked with new version of libtinfo.
 
Thanks, I will test it when I'm back home. Unfortunately the external drive (connected to USB 3.0) killed the router so I can't connect from the office and test it now.

Just one question. When I've installed Asuswrt-Merlin, I formatted my drive new, so I had to install optware-ng again and also made a new installation with 'ipkg install nano'. That means, that nano must be linked to the new version of libtinfo.
Where do I find this libtinfo? Should it be under /lib or must it be somewhere installed with optware?
 
When I've installed Asuswrt-Merlin, I formatted my drive new, so I had to install optware-ng again and also made a new installation with 'ipkg install nano'. That means, that nano must be linked to the new version of libtinfo.
That's depends where old nano is: on local drive of router or Optware-ng hosting. I've asked Optware-ng's author to check the repo.

Where do I find this libtinfo? Should it be under /lib or must it be somewhere installed with optware?
No any library should be used outside of /opt folder. Every Optware-ng binary should use /opt/lib/* libraries.
 
Thanks for the info. Now I understand.
The curios thing about this is, that I made a fresh installation of John's fork (v14E1) and formatted the external drive via the router. Afterwards I installed optware-ng with nano and everything worked perfect (I think I did that last time last friday).
Because of problems with the USB3.0-drive/freezing router, I decided to swap to the latest Merlin build to test if it has the same problems (in the meantime I found out that the problem is the USB3.0-port on the router). I made a factory reset and installed the Merlin build (it's not possible to go direct from v14E1 to the latest Merlin build, therefore I installed some older Merlin builds before).
After the last installation I made a factory reset and also formatted the drive new. So it must be the latest nano version I've installed.
 
Try
Code:
ipkg --autoremove remove nano
ipkg install nano
I suspect libtinfo was upgraded, while nano remains not re-linked with new version of libtinfo.

nano was probably upgraded too - I lost the "-w" flag. So I keep having to try twice whenever I run nano - years of habits of constantly using -w are hard to forget :(
 
So, after a I could fix the freezed router I changed the external drive and made a new install (with new formating of the drive).
Nano runs perfect now. No error anymore and scripting is possible again.:)
Thanks for your assistance and info. This issue is fixed now.
 
nano was probably upgraded too - I lost the "-w" flag. So I keep having to try twice whenever I run nano - years of habits of constantly using -w are hard to forget :(

I am in the same boat. That -w command is a must.
 
No need for the -w command anymore. The problem is fixed now

I run nano multiple times per day (both at work and at home). Getting rid of 10-15 years of habit is kinda hard.
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top