
wish: $DISPLAY environment ???
Quote:
> I am always getting this error when i try to run wish:
> /tools: wish8.3
> Application initialization failed: no display name and no $DISPLAY
> environment v ariable
> % /tools:
> What is the $DISPLAY variable?
This has nothing to do with tcl/tk: the DISPLAY environment variable is
used by the X11 client application to know where its graphical output
should go. It's normally automatically set by your machine to the correct
value but is frequently lost when you do a rlogin to another machine. Is it
your case? If it is, the solution is simple: set this variable to the value
"<hostname>:0", where <hostname is the name of your machine, or its IP
address. The setting is made in the shell window just before running your
tcl/tk application by doing:
DISPLAY="<hostname>:0"
export DISPLAY
on sh-compatible shells (sh, ksh, bash), or:
setenv DISPLAY "<hostname>:0"
on csh-compatible shells (csh, tcsh)
You may also have to issue the command:
xhost +
on your machine (not the one you rlogged to) to allow the distant machine
to connect to its X11 server.
HTH
--
PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com