Can't locate Gtk2/Window.pm in @INC



Hi List,

I am learning gtk-perl  programing. To under the programming language.
I have copied and pasted a program from the tutorial. I get the following error.
My distribution is FC7.

I am running the program typing Perl and name of the program at the console. Can someone guide as to what is missing in the above.

--------------Program--------------------
#!/usr/bin/perl -w

#
# Introduction to GUI programming with Gtk2-Perl
# Example: hello_world.pl
#
# rm
#

use strict;
use Gtk2 '-init';

my $window = Gtk2::Window->new;
my $label = Gtk2::Label->new ('Hello World!');
$window->add ($label);
$window->show_all;
Gtk2->main;
------------------------------------------------------------------------


-------------------ERROR--------------------------------------------
Can't locate Gtk2/Window.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/lib/perl5/site_perl/5.8.8/Glade/Two/Run.pm line 25.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Glade/Two/Run.pm line 25.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/Glade/Two/Source.pm line 25.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Glade/Two/Source.pm line 25.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/Gtk2.pm line 24.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/Gtk2.pm line 24.
Compilation failed in require at ./test.pm line 11.
BEGIN failed--compilation aborted at ./test.pm line 11.
-----------------------------------------------------------------------


FLOSS



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]