Results 1 to 10 of 10

Thread: /opt/bin programs not working

  1. #1

    Unhappy /opt/bin programs not working

    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

    Code:
    [adder@luffy bin]$ /opt/bin/nano
    sh: /opt/bin/nano: not found
    Ls shows the file
    Code:
    [adder@luffy bin]$ ls /opt/bin/n*
    /opt/bin/nano
    I have the exact same problem with ctorrent.

    Export gives this:
    Code:
    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.

  2. #2
    Same for me with Oleg 1.9.2.7-7g on my 500g. f version works fine for me.

  3. #3
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    3,805
    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/op...g/cross/stable
    If you change the repository to another one all the packages in the system should be reinstalled

  4. #4
    I changed /opt/etc/ipkg.conf:
    Code:
    src unslung http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable
    to

    Code:
    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


    Code:
    [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:

    Code:
    [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?).

    Code:
    [adder@luffy /tmp/local/root]$ nano
    Error opening terminal: linux.
    Last edited by killerdark; 19-04-2007 at 04:10.

  5. #5
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    3,805
    do you have termcap package installed?

  6. #6
    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.

    Code:
    [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?

  7. #7
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    reinstall ncurses

  8. #8
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    3,805
    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.

  9. #9
    I reinstalled ncurses and a handful of other libs.

    Problem solved.

    Thanks for the help

  10. #10
    Hi, is there some tutorial how to upgrade 1.9.2.7-7f to 1.9.2.7-7g?
    Last edited by stepand76; 23-04-2007 at 15:40.

Similar Threads

  1. EXT2 formatting - anyone have it working?
    By Verme in forum WL-500w Q&A
    Replies: 6
    Last Post: 20-07-2007, 19:35
  2. DHCP not working after firmware upgrade?
    By denny in forum WL-500g Q&A
    Replies: 0
    Last Post: 11-04-2006, 08:52
  3. Replies: 1
    Last Post: 09-12-2005, 22:29
  4. Trying to get IDE working on Oleg's Firmware
    By hugo in forum WL-HDD Custom Development
    Replies: 34
    Last Post: 01-11-2004, 18:06
  5. Custom user programs
    By Randale91 in forum WL-500g Custom Development
    Replies: 1
    Last Post: 20-10-2004, 14:22

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •