linux - 无法在@INC 中找到 File/Remote.pm(@INC 包含 :

标签 linux perl centos perl-module

我遇到以下问题。

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 .)

如果我列出流动文件实际上在那里:

 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

我真的卡在这里了,这个脚本在 Solaris 上运行,为了减少许可证我已经将 100 多个站点转换为 centos,这个脚本需要在几个上运行,但我不太明白单独使用谷歌完成这一步。

最佳答案

该文件用于 CPANPLUS::Shell::Default::Plugins::Remote [1].


@INC 包含

  • /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
  • .

所以 Perl 检查

  • /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

模块没有安装(或者它安装在 Perl 没有被告知要查看的目录中)。只需安装模块(使用 cpan File::Remote)。


  1. 这带来了第二个问题:use CPANPLUS::Shell::Default::Plugins::Remote; 不会工作因为

    /pkg/qct/software/perl/q4_06/.lib/site_perl/5.8.8
    

    应该添加到 @INC 而不是

    /pkg/qct/software/perl/q4_06/.lib/site_perl/5.8.8/CPANPLUS/Shell/Default/Plugins
    

关于linux - 无法在@INC 中找到 File/Remote.pm(@INC 包含 :,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37595756/

相关文章:

ruby - 安装 RSense,服务器未运行

linux - 脚本/bin/bash 扩充太长并且 grep 部分在查找中不起作用

multithreading - 为什么 URI 对象不能定位方法 "scheme"?

python - 在 CentOS 上部署 Mezzanine CMS

php - 通过 mail() Apache+PHP5.3+sendmail 发送电子邮件时延迟 20 秒?

php - 我如何让脚本自动重启

c - 执行栈上的代码

perl - 意外的参数自动激活

perl - 在进程运行时从键盘读取一个键

r - 在 redHat CentOs 7 上安装 R。几个错误和依赖项我无法克服