Log in

Bekijk de volledige versie : /opt/bin programs not working



killerdark
18-04-2007, 08:35
A few programs wont work on my Asus router. I am running Oleg 1.9.2.7-7f on a 500gP.

I installed nano and ctorrent


[adder@luffy bin]$ /opt/bin/nano
sh: /opt/bin/nano: not found

Ls shows the file


[adder@luffy bin]$ ls /opt/bin/n*
/opt/bin/nano

I have the exact same problem with ctorrent.

Export gives this:

export PATH='/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:
/usr/sbin:/usr/bin:/sbin:/bin'

Does anyone have an idea what is wrong?

Except for this problem I have the whole router running great.
A big "thank you" to Oleg and everyone on this forum.:)

stepand76
18-04-2007, 18:56
Same for me with Oleg 1.9.2.7-7g on my 500g. f version works fine for me.

al37919
18-04-2007, 19:19
Exactly the same question was posted several days ago here: http://wl500g.info/showthread.php?t=8970

The solution of the problem isn't totally clear to me. However, likely the problem is in the incompatibility of the used libs and apps. The packages for the Oleg's firmware are available from several sources. They should not be mixed together. His point is that the right source in the /opt/etc/ipkg.conf should look like:
src optware http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable
If you change the repository to another one all the packages in the system should be reinstalled :(

killerdark
19-04-2007, 04:04
I changed /opt/etc/ipkg.conf:


src unslung http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable

to



src opt http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable

Then tried force reinstall nano, which did not solve the problem.
Then tried force reinstall some random libs, which did not solve the problem either.
Then I installed (for the first time) uclibc-opt



[adder@luffy /tmp/local/root]$ ipkg install uclibc-opt
Installing uclibc-opt (0.9.28-12) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable//uclibc-opt_0.9.28-12_mipsel.ipk
package uclibc-opt suggests installing ipkg-opt
Configuring uclibc-opt
Updating /opt/etc/ld.so.cache
Successfully terminated.


And that resulted in:



[adder@luffy /tmp/local/root]$ ctorrent
CTorrent devel Copyright: YuHong(992126018601033)
WARNING: THERE IS NO WARRANTY FOR CTorrent. USE AT YOUR OWN RISK!!!

So that looks good.
Now I still got a little problem with nano(that might be related to putty perhaps?).



[adder@luffy /tmp/local/root]$ nano
Error opening terminal: linux.

al37919
19-04-2007, 05:45
do you have termcap package installed?

killerdark
19-04-2007, 07:45
Termcap is installed, tried a reinstall, but that did not help much.

This guy is having the same problem as me:

http://wl500g.info/showthread.php?t=8961

screen was working before I switched feeds so it must be some lib that needs to be updated.



[adder@luffy /tmp/local/root]$ screen
/opt/var/run/utmp: No such file or directory
Cannot find termcap entry for 'linux'.


Maybe I should just back up my configuration and do a reformat of opt and start all over again with a fresh firmware?

oleo
19-04-2007, 07:57
reinstall ncurses

al37919
19-04-2007, 07:59
Maybe I should just back up my configuration and do a reformat of opt and start all over again?

Probably this is the best way to avoid weird problems in the future. Oleg told that in the future releases of his firmware optware will be the default package feed.

killerdark
19-04-2007, 08:02
I reinstalled ncurses and a handful of other libs.

Problem solved.

Thanks for the help

stepand76
23-04-2007, 10:59
Hi, is there some tutorial how to upgrade 1.9.2.7-7f to 1.9.2.7-7g?