|
Posted by Jack D on June 23, 2008, 8:48 pm
Please log in for more thread options > I see that I have a errors when installing some Tk modules. All the errors
> have to do with not being able to display the GUI during the "make test"
> portion of the install.
>
> http://ppm.activestate.com/beta/author/DUNNIGANJ.html
>
> > Errors such as the following:
> >
> > couldn't connect to display ":0" at
> >
/home/cpan/perl585/.cpanplus/5.8.5/build/Tk-804.028/blib/lib/Tk/MainWindow.pm
> > line 55.
> > MainWindow->new() at test.pl line 26
> >
> > How would I bypass running the GUI test if there is no display to
> > connect to
> > so that the install tests show pass instead of fail?
> Are those errors specific to ActiveState's ppm build process, or are
> you also getting them with cpan-testers ? (I'm thinking that if it's
> specific to ActiveState, the correct approach might be to get them to
> fix their build environment.)
> As regards bypassing the tests, is there some eval() you could run (in
> the test script) to pre-determine the availability of the display ?
> Cheers,
> Rob
Hi Rob.
No it is not just an Activestate thing. The errors are also shown on CPAN as
well.
http://cpantesters.perl.org/author/DUNNIGANJ.html
I thought it could be as simple as checking if the existence of
$ENV - However even though it could be set - it doesn't guarantee
that the window will have permission to be displayed (i.e. xhost
permissions).
I'm thinking that I might have to eval the entire Tk script - but I was
hoping for a more elegant solution. Any other thoughts?
Jack
|