PDA

Bekijk de volledige versie : midnight comander (mc)



atomilein
05-05-2005, 07:55
Hi,

any problems with mc....ipkg package is known? It was no prob to install mc with ipkg. But if i execute mc there is only black screen. Even ctrl-c does not give me the shell back. So Router must be hang up... :confused:

Greetz

macsat
05-05-2005, 08:29
Too bad, it is a nice piece of software....but I do have the excact same problem...

Scoundrel
06-05-2005, 09:47
Me too. Is seems it is our common problem. :-)


Too bad, it is a nice piece of software....but I do have the excact same problem...

japao
06-05-2005, 10:31
i have same problem , screen is black. Working is only reboot command. :mad:

atomilein
09-05-2005, 16:34
anyone knows solution? maybe the compiler of the ipkg package?

xection
10-05-2005, 23:18
I've managed to get mc to work. I'm using following script:


#!/bin/sh
export TERMINFO="/tmp/harddisk/mc/etc/terminfo"
export TERM="linux"
export LD_LIBRARY_PATH=/tmp/harddisk/mc/lib
/tmp/harddisk/mc/bin/mc


You have to extract linux.zip into /tmp/harddisk/mc/etc/terminfo/l/ (note this l subfolder). I'm sorry I had to use zip to pack...

japao
11-05-2005, 09:24
I've managed to get mc to work. I'm using following script:


#!/bin/sh
export TERMINFO="/tmp/harddisk/mc/etc/terminfo"
export TERM="linux"
export LD_LIBRARY_PATH=/tmp/harddisk/mc/lib
/tmp/harddisk/mc/bin/mc


You have to extract linux.zip into /tmp/harddisk/mc/etc/terminfo/l/ (note this l subfolder). I'm sorry I had to use zip to pack...

this is correct script for ipkg package:



#!/bin/sh
export TERMINFO="/opt/lib/terminfo"
export TERM="linux"
export LD_LIBRARY_PATH=/opt/lib
/opt/bin/mc

no linux.zip file needed, ipkg package has same file.

Oleg
11-05-2005, 09:41
export LD_LIBRARY_PATH=/opt/lib


is not needed for ipk too.

Scoundrel
12-05-2005, 09:16
It works ... :-)

Thanks for your help...

SC

atomilein
12-05-2005, 15:12
yes thanx. everything is fine now :)

Jirka22
25-11-2005, 00:26
Hello,
I am facing the same problem with the MC blank screen.
I ran the commands from the script on console. I checked it by SET command.
If I run MC I get black screen. The session is still alive; I can type commands like in running MC,but I do not see the MC screen.
I can kill the process. And return back to the console
I can run MC with the -V parameter to display configuration.
MC is located in /opt/bin.
/opt is mounted to /tmp/harddisk/opt
package mc_4.1.35-2_mipsel.ipk was installed by command: ]ipkg.sh install mc_4.1.35-2_mipsel.ipk
I also installed ncurses_5.5-1_mipsel.ipk.

I have no clue what could be wrong. Could you help me, please?
Jirka

FilimoniC
25-11-2005, 11:26
probably errors with your terminal software?
If MC stops, it stops session too, so you cant terminate process or type something (I couldnt do this), you can only terminate session and start new one

Jirka22
26-11-2005, 10:36
probably errors with your terminal software?
If MC stops, it stops session too, so you cant terminate process or type something (I couldnt do this), you can only terminate session and start new one

In my case MC does not stop. it just does not display the screen.
The prove is, that i can type shell command to the bottom line of MC. I do not see what I am typing , but when I press enter it executes it, print output of the command on the screen and waits for any key. So I can type PS and KILL <pid> to terminate MC and return to the console.

I tried to use both windows telnet and GLINK . I do not expect the error here.

I do not understand one thing. There is a environment variable TERMINFO. it contains a path to file terminfo.
Is it required , that the file must exist or the existence itself of this variable is sufficient ?
In my case, on the path the file does not exist. May be it is the problem. If it is required, where could I get some ?
Thanks.
Jirka

Jirka22
26-11-2005, 18:44
Hello,
finally I found the error.
When you install ncurses_5.5-1_mipsel.ipk it will create folder /opt/share/terminfo where it places the terminfo database.

It means that the environment variable TERMINFO must lead to the folder above instead of /opt/lib/terminfo.

Jirka