Problem with Perl::Tk 
Author Message
 Problem with Perl::Tk

Quote:

> I just installed the TK module from ActiveState on my NT4.0 machine
> (build 1381, SP 4)

> I entered some code:

> #!usr/local/bin/perl -w

> use English;
> require Tk;
> use Tk;
> use strict;

> my $Version = "1.0";

> my $main = MainWindow->new();
> $main->minsize(qw(350 250));
> $main->configure(-title=>'verify user',-background=>'gray');

> my $vu_frm1 = $main->Frame(-relief=>'groove',-borderwidth=>3,-
> background=>'black',)->pack(-side=>'top',-fill=>'x');
> my $vu_lbl = $vu_frm1->Label(-text=>'Enter Username',-
> background=>'black',-foreground=>'white',)->pack(-side=>'left');

> # this is where the error seems to happen . . .
> my $vu_enl = $vu_frm1->Entry(-width=>8,-background=>'gray',)->pack(-
> side=>'left',-pady=>3);
> MainLoop();

> When I try to run this code, I get:

> Subroutine exit redefined at d:/perl/lib/Tk.pm line 63.
> "$XS_VERSION" is not exported by the Tk module at
> d:/perl/site/lib/Tk/Entry.pm line 26
> Can't continue after import errors at d:/perl/site/lib/Tk/Entry.pm line
> 26

I don't get this error on my linux machine, with Perl 5.005_03 and Tk
800.018.

Quote:
> The offending line 26 from Entry.pm reads:

> import Tk qw(Ev $XS_VERSION);

> This is my first experience with an error being reported in a module.
> I have found no troubleshooting hints in the documentation, and it
> seems to be independent of the options that I feed to Event.

> Please point me to documentation that might help me resolve this.

The only thing I can think of is that you have a corrupted Tk
installation. Anyway, I crossposted this article to the
comp.lang.perl.tk newsgroup. Maybe someone over there can aid you
further.

--Ala



Fri, 23 Aug 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Perl/Tk Packages (Was: RE: (More) Problems Installing Perl/Tk)

2. New here: Problem with Perl/TK

3. Problem Installing Perl/Tk on Solaris 7

4. Still having problems with perl Tk installation.

5. Problem with Perl/Tk Entry widget

6. Problem with Perl::Tk

7. libX11 problem installing Perl-Tk-800.011.sol26

8. Problem with Perl/Tk and fileevent

9. Problems building Perl/Tk (on HP-UX [solved])

10. Problem installing Perl Tk on Solaris 8

11. Problems building Perl/Tk

12. Problems making perl-tk on Solaris

 

 
Powered by phpBB® Forum Software