Me wrote:
> 
> > Can't locate Gnome.pm in @INC (@INC contains:
> > /usr/local/lib/perl5/5.6.1/i686-linux /usr/local/lib/perl5/5.6.1
> > /usr/local/lib/perl5/site_perl/5.6.1/i686-linux
> > /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .)
> at
> > ./test.pl line 4.
> > BEGIN failed--compilation aborted at ./test.pl line 4.
> 
> > so apparently, i've installed it some place perl is not looking.
> 
> > any advice on how to gix this would be greatly appreciated.
> 
> Can't promise to gix anything for you, but I suggest
> you start by finding out where, if anywhere, Gnome.pm
> landed. Try something like:
> 
>     find / -name Gnome.pm

A second suggestion is to make sure that the perl you invoke from the
script is the same as the perl that did the installation.  I happen to
have 2 versions of perl installed (5.005 is at /usr/bin/perl and 5.6.1
is at /usr/local/bin/perl - each uses a different @INC).

Usually scripts start with something like

     #!/usr/local/bin/perl

or

     #!/usr/bin/perl

Which ever you are using for the script using Gnome, do

     /usr/local/bin/perl -V

or

     /usr/bin/perl -V

or

     /what/ever/is/in/your/script/perl -V

You'll see the @INC that that perl is using.  Compare it with the @INC
you included in your original post.  This may lead you to the cause of
the problem.

Dan

Reply via email to