Wish/tcltk DISPLAY is not set

2009-09-29 Thread FyD

Dear All,

When I execute wish under cygwin (wish test.tcl), I get the  
following error message:


/usr/bin/xterm:  DISPLAY is not set

I think this problem has been reported in 2006 @
http://cygwin.com/ml/cygwin/2006-02/msg00090.html
 
http://www.mail-archive.com/cygwin@cygwin.com/msg65756.html

I checked my tcltk version in my cygwin install:
it is  tcltk/tcltk-20080420-1

Does it mean that this problem reported in 2006 was not corrected in  
the 2008 version ? or do I miss something ?


thanks, regards, Francois





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



Re: Wish/tcltk DISPLAY is not set

2009-09-29 Thread Alberto Luaces
Do you have the X server running?

Alberto

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



Re: Wish/tcltk DISPLAY is not set

2009-09-29 Thread FyD

Alberto,


When I execute wish under cygwin (wish test.tcl), I get the following
error message:

/usr/bin/xterm:  DISPLAY is not set

I think this problem has been reported in 2006 @
http://cygwin.com/ml/cygwin/2006-02/msg00090.html
 
http://www.mail-archive.com/cygwin@cygwin.com/msg65756.html

I checked my tcltk version in my cygwin install:
it is  tcltk/tcltk-20080420-1

Does it mean that this problem reported in 2006 was not corrected in
the 2008 version ? or do I miss something ?




Do you have the X server running?


Yes, I obviously started the X server of Cygwin (- using startxwin.sh)

regards, Francois




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



Re: Wish/tcltk DISPLAY is not set

2009-09-29 Thread Larry Hall (Cygwin)

On 09/29/2009 09:02 AM, FyD wrote:

Alberto,


When I execute wish under cygwin (wish test.tcl), I get the following
error message:

/usr/bin/xterm: DISPLAY is not set

I think this problem has been reported in 2006 @
http://cygwin.com/ml/cygwin/2006-02/msg00090.html

http://www.mail-archive.com/cygwin@cygwin.com/msg65756.html

I checked my tcltk version in my cygwin install:
it is tcltk/tcltk-20080420-1

Does it mean that this problem reported in 2006 was not corrected in
the 2008 version ? or do I miss something ?




Do you have the X server running?


Yes, I obviously started the X server of Cygwin (- using startxwin.sh)


So you either:

  A. Didn't set DISPLAY appropriately in the shell you're starting 'wish' from.
  B. Didn't start 'wish' from the 'xterm' that gets started with 
'startxwin.sh'.


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

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



Re: Wish/tcltk DISPLAY is not set

2009-09-29 Thread FyD

Quoting Larry Hall (Cygwin) reply-to-list-only...@cygwin.com:


When I execute wish under cygwin (wish test.tcl), I get the following
error message:

/usr/bin/xterm: DISPLAY is not set

I think this problem has been reported in 2006 @
http://cygwin.com/ml/cygwin/2006-02/msg00090.html

http://www.mail-archive.com/cygwin@cygwin.com/msg65756.html

I checked my tcltk version in my cygwin install:
it is tcltk/tcltk-20080420-1

Does it mean that this problem reported in 2006 was not corrected in
the 2008 version ? or do I miss something ?




Do you have the X server running?


Yes, I obviously started the X server of Cygwin (- using startxwin.sh)


So you either:
  A. Didn't set DISPLAY appropriately in the shell you're starting
'wish' from.
  B. Didn't start 'wish' from the 'xterm' that gets started with
'startxwin.sh'.



So I should miss something because I think what I did is correct ;-)

- I start cygwin using the icon from the Windows 7 desktop
(bash shell is used; full cygwin install was carried out)

- in my .bashrc I do have:
export DISPLAY=127.0.0.1:0.0

- the command echo $DISPLAY gives in this black terminal:
127.0.0.1:0.0

- I execute startxwin.sh in this black terminal

- from the new xterm opened (white), I execute wish tmp.tcl
I get:
/usr/bin/xterm Xt error: Can't open display:
/usr/bin/xterm:  DISPLAY is not set

Where is the problem ?

If I execute: export DISPLAY=127.0.0.1:0.0 in the x-terminal (white)
 run again wish tmp.tcl, I get the same error message...

Thanks, regards, Francois

PS We are two different persons having this same problem.



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



Re: Wish/tcltk DISPLAY is not set

2009-09-29 Thread Larry Hall (Cygwin)

On 09/29/2009 03:07 PM, FyD wrote:

Quoting Larry Hall (Cygwin) reply-to-list-only-lh at cygwin period com:

 
http://cygwin.com/acronyms/#PCYMTNQREAIYR  Thanks.


snip


So I should miss something because I think what I did is correct ;-)

- I start cygwin using the icon from the Windows 7 desktop
(bash shell is used; full cygwin install was carried out)

- in my .bashrc I do have:
export DISPLAY=127.0.0.1:0.0


This is not required and, in the case of X forwarding using ssh (and
perhaps other cases), this would not be what you want.


- the command echo $DISPLAY gives in this black terminal:
127.0.0.1:0.0

- I execute startxwin.sh in this black terminal

- from the new xterm opened (white), I execute wish tmp.tcl
I get:
/usr/bin/xterm Xt error: Can't open display:
/usr/bin/xterm: DISPLAY is not set

Where is the problem ?


Sorry, I'm not a tcltk expert.  My guess is it has to do with the
fact that Cygwin's tcltk isn't X-based.  As a result, it may be
X-challenged.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

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