newbie00 has asked for the wisdom of the Perl Monks concerning the following question:
I wrote a test scipt that uses the Tk.pm module on a server. I am just beginning to find uses for what Tk.pm has to offer.
The script is:
#!/usr/bin/perl use Tk; $win_main = MainWindow->new(); $win_main->title ("Main Window"); $button = $win_main->Button(text => 'OK', width => 10, height => 4); $button->pack(); MainLoop();
When I invoked the script, I received the following message:
~~~~~~~~~~~~~~~~
_X11TransSocketUNIXConnect: Can't connect: errno = 2
_X11TransSocketUNIXConnect: Can't connect: errno = 2
_X11TransSocketUNIXConnect: Can't connect: errno = 2
_X11TransSocketUNIXConnect: Can't connect: errno = 2
_X11TransSocketUNIXConnect: Can't connect: errno = 2
_X11TransSocketUNIXConnect: Can't connect: errno = 2
couldn't connect to display ":0" at
../foo_path/5.005/i386-bsdos/Tk/MainWindow.pm line 55.
MainWindow->new() at testtk.cgi line 4
(notice - the path was changed here to a generic path)
~~~~~~~~~~~~~~~~
The reply I received from the sys admin was the following:
"That error signifies that the script can not
connect to the Unix Xwindows system that you are logging in from. You do not
have $DISPLAY set up properly in your .Xauth or rc files."
~~~~~~~~~~~~~~~~
How do I do whatever this response is telling me to do in order to use Tk.pm?
Thank you.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to interpret this Perl Tk.pm error?
by Rich36 (Chaplain) on Dec 14, 2001 at 00:07 UTC | |
by newbie00 (Beadle) on Dec 14, 2001 at 00:28 UTC | |
|
Re: How to interpret this Perl Tk.pm error?
by Zaxo (Archbishop) on Dec 14, 2001 at 00:18 UTC | |
by newbie00 (Beadle) on Dec 14, 2001 at 00:39 UTC | |
by scratch (Sexton) on Dec 14, 2001 at 02:42 UTC | |
by newbie00 (Beadle) on Dec 14, 2001 at 03:40 UTC | |
by Chmrr (Vicar) on Dec 14, 2001 at 04:31 UTC | |
|