Fri Jul 16 05:13:35 2010: Request 59430 was acted upon.
Transaction: Correspondence added by RSCHUPP
       Queue: PAR
     Subject: fail in mac OSX 10.3.9 perl5 (revision 5.0 version 8 subversion 1 
 RC3)
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
  Requestors: coolspee...@gmail.com
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=59430 >


On 2010-07-15 20:49:45, coolspee...@gmail.com wrote:
> compile of code with Tk fails with error using Tkpp or pp
> 
> Can't locate loadable object for module Tk::Event in
> @INC (@INC contains: CODE(0x1999ecc) CODE(0x19811b0) CODE(0x1982830)) at
> /Library/Perl/5.8.1/PAR/Heavy.pm line 103
> Compilation failed in require at Tk.pm line 13.
> BEGIN failed--compilation aborted at Tk.pm line 13.
> Compilation failed in require at script/tkpp line 99.
> BEGIN failed--compilation aborted at script/tkpp line 99.
> Undefined subroutine &Tk::Event::CleanupGlue called at Tk/Event.pm line 3.
> END failed--call queue aborted.

That doesn't make any sense. What was it what you tried to do?

> code used:
> 
> #!/usr/bin/perl
> use Tk;
> # Main Window
> my $mw = new MainWindow;
> my $label = $mw -> Label(-text=>"Hello World") -> pack();
> my $button = $mw -> Button(-text => "Quit",
>         -command => sub { exit })
>     -> pack();
> MainLoop;

That script works fine here, when saved as my_script.pl
and then packed with pp

$  pp -o my_script my_script.pl
$  ./my_script

Cheers, Roderich



Reply via email to