logo       

Re: couldn't connect to display ":0": msg#00018

Subject: Re: couldn't connect to display ":0"
Why not try
my $main = new MainWindow; ###barfs here###
change to:
my $main = MainWindow->new; ###barfs here###
----- Original Message -----
To: tk list
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
-----Original Message-----
From: John Larson [mailto:jwlarson3rd@xxxxxxxxx]
Sent: Monday, June 07, 2004 4:15 PM
To: tk list
Cc: Nick Ing-Simmons
Subject: couldn't connect to display ":0"

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
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe