I’m having trouble with the following.
Can’t locate File/Remote.pm in @INC (@INC contains: /pkg/qct/software/perl/q4_06/.lib/site_perl/5.8.8/CPANPLUS/Shell/Default/Plugins /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .)
If I list the flowing the file is actually there :
ls /pkg/qct/software/perl/q4_06/.lib/site_perl/5.8.8/CPANPLUS/Shell/Default/Plugins Diff.pm HOWTO.pod Remote.pm RT.pm Source.pm
I’m really stuck here, this script was running on Solaris, to cut down on licenses I’ve converted 100+ sites to centos, and this script is required to run on a few, but I can’t quite get over this step with google alone.
Advertisement
Answer
That file is for CPANPLUS::Shell::Default::Plugins::Remote[1].
@INC
contains
/pkg/qct/software/perl/q4_06/.lib/site_perl/5.8.8/CPANPLUS/Shell/Default/Plugins
/usr/local/lib64/perl5
/usr/local/share/perl5
/usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl
/usr/lib64/perl5
/usr/share/perl5
.
so Perl checks for
/pkg/qct/software/perl/q4_06/.lib/site_perl/5.8.8/CPANPLUS/Shell/Default/Plugins/File/Remote.pm
/usr/local/lib64/perl5/File/Remote.pm
/usr/local/share/perl5/File/Remote.pm
/usr/lib64/perl5/vendor_perl/File/Remote.pm
/usr/share/perl5/vendor_perl/File/Remote.pm
/usr/lib64/perl5/File/Remote.pm
/usr/share/perl5/File/Remote.pm
./File/Remote.pm
The module isn’t installed (or it’s installed in a directory into which Perl hasn’t been told to look). Simply install the module (by using cpan File::Remote
).
This brings up a second problem:
use CPANPLUS::Shell::Default::Plugins::Remote;
won’t work because/pkg/qct/software/perl/q4_06/.lib/site_perl/5.8.8
should have been added to
@INC
instead of/pkg/qct/software/perl/q4_06/.lib/site_perl/5.8.8/CPANPLUS/Shell/Default/Plugins