ciumes has asked for the wisdom of the Perl Monks concerning the following question:
Now, when I want to run a CGI program, things don't go so well: The code is just as simple for dbs.cgi:#!/usr/bin/perl print "Hello World\n";
The problem now is that I get the message:#!/usr/bin/perl -d:ptkdb use CGI (':standard'); print header; print start_html; print "Hello"; print end_html;
couldn't connect to display ":0" at /perl_modules/lib/site_perl/5.12.0/s390x-linux/Tk/MainWindow.pm line 55.
But that didn't work. I have also used xhost to try and set things up, but to no avail. If I don't invoke with -d:ptkdb, then the cgi script properly displays "Hello" on the browser screen.$ENV{DISPLAY} = "localhost:0.0";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: ptkdb cannot connect to DISPLAY
by zentara (Cardinal) on Apr 15, 2011 at 17:35 UTC | |
|
Re: ptkdb cannot connect to DISPLAY
by Anonymous Monk on Nov 11, 2011 at 09:30 UTC |