comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: setenv DISPLAY fix not working with X Widonws display problem...
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: setenv DISPLAY fix not working with X Widonws display problem... [message #82499] Wed, 19 December 2012 15:00
Mats Löfdahl is currently offline  Mats Löfdahl
Messages: 263
Registered: January 2012
Senior Member
Den onsdagen den 19:e december 2012 kl. 23:29:56 UTC+1 skrev cjarv...@gmail.com:
> Yes, and it still returns the same error when I run a simple plot. Is there some other syntax that I'm missing like a comma somewhere?

Since you have to deal with the DISPLAY variable in the first place, you are logged in remotely to the machine where you are running IDL, right? And the <IP address> you are setting the DISPLAY variable to, that's the IP address of the machine the screen of which you are sitting by?

Then, how did you log in remotely? A long time ago, when people used telnet, you actually had to deal with the DISPLAY variable. Nowadays, when you are more likely to use ssh, you don't do that. You use ssh with the -X flag instead. Of course, your local machine (the one with the screen) still has to have an X server.
Re: setenv DISPLAY fix not working with X Widonws display problem... [message #82500 is a reply to message #82499] Wed, 19 December 2012 14:59 Go to previous message
cjarviskdr is currently offline  cjarviskdr
Messages: 5
Registered: December 2012
Junior Member
I downloaded both cygwin and cygwin/x
Re: setenv DISPLAY fix not working with X Widonws display problem... [message #82501 is a reply to message #82500] Wed, 19 December 2012 14:55 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
cjarviskdr@gmail.com writes:

> Yes. Is it likely that there was an error during downloading?

No, I think this is just a problem with how your X-Window
system is set up. It has nothing to do with IDL, unfortunately,
except that IDL interacts with the window system.

But, I have almost no experience with Cygwin, so I can't
be of much help, I'm afraid.

Why didn't you download the Windows version?

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: setenv DISPLAY fix not working with X Widonws display problem... [message #82502 is a reply to message #82501] Wed, 19 December 2012 14:49 Go to previous message
cjarviskdr is currently offline  cjarviskdr
Messages: 5
Registered: December 2012
Junior Member
Yes. Is it likely that there was an error during downloading?
Re: setenv DISPLAY fix not working with X Widonws display problem... [message #82503 is a reply to message #82502] Wed, 19 December 2012 14:34 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
cjarviskdr@gmail.com writes:

> Yes, and it still returns the same error when I run a simple plot. Is there some other syntax that I'm missing like a comma somewhere?

You exited IDL, set your DISPLAY, then restarted IDL, right?

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: setenv DISPLAY fix not working with X Widonws display problem... [message #82504 is a reply to message #82503] Wed, 19 December 2012 14:29 Go to previous message
cjarviskdr is currently offline  cjarviskdr
Messages: 5
Registered: December 2012
Junior Member
Yes, and it still returns the same error when I run a simple plot. Is there some other syntax that I'm missing like a comma somewhere?
Re: setenv DISPLAY fix not working with X Widonws display problem... [message #82507 is a reply to message #82504] Wed, 19 December 2012 14:21 Go to previous message
Mats Löfdahl is currently offline  Mats Löfdahl
Messages: 263
Registered: January 2012
Senior Member
Den onsdagen den 19:e december 2012 kl. 23:11:07 UTC+1 skrev cjarv...@gmail.com:
> And which part of that is case sensitive? I tried it as:
>
>
>
> setenv DISPLAY <IP address>:0.0
>
>
>
> but that still returned a syntax error at the "I" of DISPLAY...

Ummm... You do realize you should do that at the shell prompt and not at the IDL prompt, right?
Re: setenv DISPLAY fix not working with X Widonws display problem... [message #82508 is a reply to message #82507] Wed, 19 December 2012 14:11 Go to previous message
cjarviskdr is currently offline  cjarviskdr
Messages: 5
Registered: December 2012
Junior Member
And which part of that is case sensitive? I tried it as:

setenv DISPLAY <IP address>:0.0

but that still returned a syntax error at the "I" of DISPLAY...
Re: setenv DISPLAY fix not working with X Widonws display problem... [message #82510 is a reply to message #82508] Wed, 19 December 2012 13:42 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
cjarviskdr@gmail.com writes:

> I am using Cygwin and attempt to run a basic plot function in IDL but get the error (which I have seen here is fairly common):
> % PLOT: Unable to connect to X Windows display: :0.0
> % PLOT: Unable to open X Windows display.
> Is your DISPLAY environment variable set correctly?
> % Execution halted at: $MAIN$
>
> I have read that:
> setenv display <your IP address>:0.0
> ^
> should make it work, but for me it just produced a sytax error as shown above under the "i". What could be a solution?

I'm afraid this is going to be case sensitive. You
may have to locate the CAP LOCKS key! ;-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Trouble with positioning cgColorbars while using !P.Multi
Next Topic: setenv DISPLAY fix not working with X Widonws display problem...

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:27:49 PDT 2025

Total time taken to generate the page: 0.00527 seconds