On 09/05/2010 18:31, René Berber wrote: > Digika wrote: > >> Can someone explain me why "top" from ProcPs package ... do not want to >> work? I gave him all depends (cygncurses-8.dll and cygwin1.dll) but >> everything I'm getting from it is an error: >> >> C:\Programs\gnutools\procps\usr\bin>top >> 'cygwin': unknown terminal type. > > Do you have terminfo installed? > > Ncurses has terminfo as dependency, indirect through libncurses10. > Perhaps your installation is incomplete.
It looks like Digika is trying to make top run standalone by unpacking the archive manually and adding a copy of the cygwin1 and cygncurses-8 DLLs. It's unsurprising that it won't work without the other required parts of the cygwin installation around it. A simple "strings /usr/bin/cygncurses-8.dll | grep terminfo" shows that it expects to be able to locate the /usr/share/terminfo subdirectory. > Check the program itself: 'cygcheck `which top`'. That doesn't actually show this kind of dependency; it shows the DLLs that the executable requires, but it can't know anything about file paths it might want to open at runtime. >> Why is that so? is there any way to make standalone version of "top" >> which is independent from cygwin terminal? I want to use it via telnet >> on a remote win32 machine. > > There are easier ways, depending on the terminal you are using you could > just define TERM, i.e. export TERM=rxvt or vt100 or something else. Don't see how that would work either. Maybe setting TERM to nothing at all would work. Otherwise, you could try copying /usr/share/terminfo/c/cygwin into C:\Programs\gnutools\procps\usr\share\terminfo\c\ and it might work, but I don't know if other dependencies might crop up. cheers, DaveK -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple