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.
In reply to How to interpret this Perl Tk.pm error? by newbie00
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |