delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/05/03/08:14:00

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.9 required=5.0 tests=BAYES_40,SPF_NEUTRAL,TW_CG,TW_YG,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4BDEBDF7.4000903@cornell.edu>
Date: Mon, 03 May 2010 08:13:43 -0400
From: Ken Brown <kbrown AT cornell DOT edu>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4
MIME-Version: 1.0
To: cygwin <cygwin AT cygwin DOT com>
Subject: Re: "Error opening terminal: cygwin." when attempting to start lynx
References: <545472025 DOT 20100501114001 AT mtu-net DOT ru> <20100501080821 DOT GA3809 AT ghost DOT local DOT lan> <20100501160824 DOT GA21508 AT ednor DOT casa DOT cgf DOT cx> <925535189 DOT 20100501203918 AT mtu-net DOT ru> <20100501165357 DOT GA21753 AT ednor DOT casa DOT cgf DOT cx> <4BDC64A1 DOT 2000003 AT cornell DOT edu> <811213036 DOT 20100501232358 AT mtu-net DOT ru>
In-Reply-To: <811213036.20100501232358@mtu-net.ru>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 5/1/2010 3:23 PM, Andrey Repin wrote:
> Greetings, Ken Brown!
>
>>>>>>> I'm receiving this error message when trying to start
>>>>>>> lynx browser:
>>>>>>>
>>>>>>> [C:\]$lynx
>>>>>>> Error opening terminal: cygwin.
>>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> What does `echo $TERM' tells you? (I'm guessing TERM=cygwin)
>>>>>> Does `export TERM=xterm' solve the problem?
>>>>>> Note that it works for me whatever TERM is: cygwin, xterm, screen...
>>>>>> I can only force to fail if I set TERM to nonsense `TERM=sjdfjsfjsf'
>>>>>>
>>>>>> (What I don't know is why TERM=cygwin fails for you)
>>>>
>>>>> At this point we normally ask for someone to read:
>>>>
>>>>> http://cygwin.com/problems.html
>>>>
>>>>> and provide the type of information suggested there.
>>>>
>>>> Though it's apparent that I've just launched lynx as normal application, as
>>>> I've always did in the past.
>>>> TERM show nothing, this variable is undefined in common Windows environment.
>>>>
>>>> May I ask you what cygcheck mean when listing Far FTP plugin host definitions?
>>>> I've left it included, as it contains no private data, but it shouldn't be there.
>>>
>>> cygcheck did not list your installed packages for some reason which sounds like
>>> you may have more than one cygwin1.dll on your system.
>
> Not possible. Same DLL in multiple places (due to different mount points) -
> possible, but certainly not different versions of DLL's.
>
> [C:\]$C:\bin\which.exe -a cygwin1.dll
> /usr/bin/cygwin1.dll
>
> [C:\]$which cygwin1.dll
> cygwin1.dll is an external : C:\bin\cygwin1.dll
>
> [C:\]$mount
> C:/bin on /usr/bin type ntfs (binary,auto)
> C:/lib on /usr/lib type ntfs (binary,auto)
> C: on / type ntfs (binary,auto)
> R: on /cygdrive/r type iso9660 (binary,posix=0,user,noumount,auto)
>
> [C:\]$
>
> See? 4NT and cygwin both see only one DLL.
>
>>> For sure it is obvious that your PATH isn't right.
>>> Cygwin's directories should always come first.
>>> So maybe you aren't running a cygwin versin of lynx but are, instead, running something
>>> which does not understand the cygwin TERM type.
>
>> The cygcheck output also shows two Cygwin installations, one contained
>> in the other.  That seems risky.
>
> It's just a consequence, there's in fact just one installation.
>
> But I've tried to move Cygwin folders earlier in Path...
>
> [C:\]$set PATH&&  lynx
> C:/bin;C:/usr/sbin;C:\WINDOWS/system32;C:\WINDOWS;C:\WINDOWS/System32/Wbem;C:/usr/4nt;C:/usr/Delphi/vbroker/bin;C:/usr/Delphi7/Bin
> ;C:/usr/Delphi7/Projects/Bpl;C:/usr/sbin/svn-win32/bin;C:/PROGRA~1/WINRAR;C:/usr/ARH/7ZIP;C:/Program Files/Java/jre6/bin;C:/usr/ut
> il;C:/DRWEB;C:/USR/BP/BIN;C:/d/REINST/ROOT/DOOM;C:/d/REINST/ROOT/UTIL;C:/usr/ARH;C:/USR/VP21/BIN.W32

Your path indicates that you have a lot of non-cygwin software inside 
your cygwin installation (under C:/usr).  That seems like a bad idea to me.

> Error opening terminal: cygwin.
>
> [C:\]$
>
> And the same when trying to start it from bash command prompt:
>
> bash-3.2$ lynx
> Error opening terminal: cygwin.
> bash-3.2$
>
> Meh... Any good idea what to delete in attempt to fix this?

As cgf said, maybe you aren't running cygwin's lynx.  Did you install 
cygwin's lynx package?  What does 'cygcheck -c lynx' show?  What does 
'which lynx' show?

Ken

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019