----- Original Message -----
Sent: Monday, June 07, 2004 4:15 PM
Subject: RE: couldn't connect to display
":0"
I
think that is not a problem with your script, but with the environment
variable DISPLAY that may be set incorrectly.
Or
if you are running that script from a session window that doesn't let
graphics (spawning windows) though, that is another
possibility.
Are
you running your script from your local host or telnet'ed / rsh'ed
?
Iggs
help
when I run this program:
#!/usr/bin/perl -w
use strict;
use CGI::Carp
qw(fatalsToBrowser);
use lib
'/home/bthcraft/cgi-bin/lib/lib/perl5/site_perl/5.8.0/i386-linux';
use
Tk;
my $main = new MainWindow; ###barfs here###
$main->Label(-text
=> 'Hello, world!')->pack;
$main->Button(-text => 'Quit',
-command => sub{exit} )->pack;
MainLoop;
I recieve the following error
Mon Jun 7 13:11:43 2004] test.cgi: couldn't connect to display ":0" at
/home/bthcraft/cgi-bin/lib/lib/perl5/site_perl/5.8.0/i386-linux/Tk/MainWindow.pm
line 55. [Mon Jun 7 13:11:43 2004] test.cgi: MainWindow->new() at
/home/bthcraft/cgi-bin/test.cgi line 6
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo!
Messenger