Did some trial and errors and found the solution:
The missing file should be "/var/run/utmp" rather than "/opt/var/run/utmp" !!!
Solved it with "touch /var/run/utmp".
Hi,
I followed the tutorial at http://wl500g.info/showthread.php?t=7643 in setting up screen in order that I may install enhanced c-torrent.
However I got stuck after installing "screen". What i did is as follows (using sudo bash):
1. ipkg install -force-overwrite ncurses
2. ipkg install -force-overwrite ncursesw
3. ipkg install -force-overwrite termcap
4. ipkg install -force-overwrite screen
The above steps completed without errors.
However when i execute "screen", i get the message:
could not write to /opt/var/run/utmp : bad file descriptor
So i went ahead to "touch /opt/var/run/utmp" to create utmp.
No good. I tried creating utmp as a directory in /opt/var/run/ as well but no difference.
What am i doing wrong?
Would appreciate any advice.
thanks.
Patrick
Did some trial and errors and found the solution:
The missing file should be "/var/run/utmp" rather than "/opt/var/run/utmp" !!!
Solved it with "touch /var/run/utmp".
Hi!
touch /opt/var/run/utmp solve this problem but when I run 'screen' I get the message:
Cannot find termcap entry for 'xterm'.
What? And also not working nano editor:
Error opening terminal: xterm.
George
Install the termcap package.
- K.C.
Hi,
termcap package already installed and updated...
nano already working my system but when I switch to oleg-optware feed (/opt/etc/ipkg.conf) and install uclibc-opt, libstdc++ and reinstall any already installed packages (and install wxbase and amule), screen and nano not working.
(xterm : unknown) I think uclibc-opt or libstdc++ lib files modified something my system or perhaps two termcap conf file in system... I mc is working and I can edit conf files (use xterm emulation)
sorry my english
Thanks, George
Last edited by KGy; 15-04-2007 at 14:02.
Do you have /opt/lib in your LD_LIBRARY_PATH?
- K.C.
Yes but not run nano and screen.
George
Sorry, I'm out of ideas...
- K.C.
to get nano and screen working again after switching to oleg-optware feedware run the command:
Original source http://wl500g.info/showthread.php?p=...term#post48520Code:awk '/^Package:/{system("ipkg install -force-reinstall -force-defaults " $2)}' /opt/lib/ipkg/status
The following worked for me:
sudo touch /opt/var/run/utmp
sudo chmod -R 777 /opt/var/run
Then "screen" did not display the error message any more.