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




Thanks Jeff, for the reply. I was able to run this program. In my home directory.
I have a Bunch of more program in the /usr/local/bin/final directory which i need to run and do the modification for the same. Am i missing anything in the PATH Directory my echo $PATH gives following.

/usr/kerberos/sbin:/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/NX/bin:/home/trilok/bin:/usr/NX/bin:/usr/NX/bin

When i run the program in the above directory following is the error

----------------------------Error-------------------------------------------------------
Can't locate Gtk2/Window.pm in @INC (@INC contains: ./src src /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 src/main.pm line 11.
BEGIN failed--compilation aborted at src/main.pm line 11.
Compilation failed in require at ./bin/finaltaxi line 13.
BEGIN failed--compilation aborted at ./bin/finaltaxi line 13.
------------------------------------Error------------------------------------------------

Also i shall be thankful to you if you can guide me to install Gtk2-Perl. I have tried the following it does not work.

yum install Gtk2-Perl
Loading "installonlyn" plugin
Setting up Install Process
Parsing package install arguments
Trilok                    100% |=========================|  951 B    00:00
updates                   100% |=========================| 2.3 kB    00:00
fedora                    100% |=========================| 2.1 kB    00:00
Nothing to do
[root lampo final]# perl -MCPAN -e shell

cpan shell -- CPAN exploration and modules installation (v1.7602)
ReadLine support enabled

                                                                                                                            cpan> install Gtk2-Perl
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
  Database was generated on Mon, 25 Feb 2008 06:30:58 GMT
Warning: Cannot install Gtk2-Perl, don't know what it is.
Try the command

    i /Gtk2-Perl/

to find objects with matching identifiers.

                                                                                                                            cpan> quit
Lockfile removed.
[root lampo final]# smart install Gtk2-Perl
Loading cache...
Updating cache...                                ################################################################### [100%]

error: 'Gtk2-Perl' matches no packages. Suggestions:
error:     gtk2-devel-2 10 11-7 fc7 i386

[root lampo final]# smart install gtk2-devel-2 10 11-7 fc7 i386
Loading cache...
Updating cache...                                ################################################################### [100%]

warning: gtk2-devel-2 10 11-7 fc7 i386 is already installed
Computing transaction...


Regards,

Floss


On Mon, Feb 25, 2008 at 1:01 PM, Jeffrey Ratcliffe <jeffrey ratcliffe gmail com> wrote:
On 25/02/2008, Open Source <mailinglistid gmail com> wrote:
> I am running the program typing Perl and name of the program at the console.

You could make the program executable, and just run it directly.

> Can't locate Gtk2/Window.pm in @INC (@INC contains:

Looks to me as though you haven't installed Gtk2-Perl.

Regards

Jeff



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