CPAN模块安装失败

时间:2014-07-23 15:02:03

标签: perl cpan

我正在尝试安装 POE :: Component:IRC :: State ,但一直都会返回此错误。我试过谷歌搜索,但没有解决方案。任何人都知道如何处理这个?

install POE::Component:IRC::State
Going to read '/home/user/.cpan/Metadata'
  Database was generated on Tue, 22 Jul 2014 11:41:02 GMT
Running install for module 'POE::Component::IRC::State'
Running make for B/BI/BINGOS/POE-Component-IRC-6.88.tar.gz
Checksum for /home/user/.cpan/sources/authors/id/B/BI/BINGOS/POE-Component-IRC-6.88.tar.gz ok
Scanning cache /home/user/.cpan/build for sizes
Use of uninitialized value $newdir in substitution (s///) at /opt/OMNIperl/lib/5.14/i86pc-solaris-thread-multi-64/Cwd.pm line 502.
Use of uninitialized value $newdir in chdir at /opt/OMNIperl/lib/5.14/i86pc-solaris-thread-multi-64/Cwd.pm line 510.
Use of chdir('') or chdir(undef) as chdir() is deprecated at /opt/OMNIperl/lib/5.14/i86pc-solaris-thread-multi-64/Cwd.pm line 510.
Use of uninitialized value $newdir in pattern match (m//) at /opt/OMNIperl/lib/5.14/i86pc-solaris-thread-multi-64/Cwd.pm line 525.
Use of uninitialized value $newdir in split at /opt/OMNIperl/lib/5.14/i86pc-solaris-thread-multi-64/Cwd.pm line 531.
............................................................................DONE

Use of uninitialized value $_[0] in join or string at /opt/OMNIperl/lib/5.14/i86pc-solaris-thread-multi-64/File/Spec/Unix.pm line 86.
Use of uninitialized value $path in pattern match (m//) at /opt/OMNIperl/lib/5.14/i86pc-solaris-thread-multi-64/File/Spec/Unix.pm line 267.


  CPAN.pm: Going to build B/BI/BINGOS/POE-Component-IRC-6.88.tar.gz

Warning: No success on command[/opt/OMNIperl/bin/amd64/perl Makefile.PL]
  BINGOS/POE-Component-IRC-6.88.tar.gz
  /opt/OMNIperl/bin/amd64/perl Makefile.PL -- NOT OK
Running make test
  Make had some problems, won't test
Running make install
  Make had some problems, won't install
Failed during this command:
 BINGOS/POE-Component-IRC-6.88.tar.gz         : writemakefile NO '/opt/OMNIperl/bin/amd64/perl Makefile.PL' returned status -1

1 个答案:

答案 0 :(得分:1)

之前我遇到过与此类似的内容,我相信您的错误原因,假设您收到其他模块安装的错误*,则需要更新当前版本的Perl。

从您的错误报告中看起来您运行的是5.14,但您应该运行5.20。如果这是一个远程/个人设置,您可以尝试升级您的Perl版本,但肯定会备份所有内容。

如果这是大型系统的一部分,我强烈建议您与系统管理员联系并要求他们调查问题并让他们升级。这是一个非常敏感的操作,升级可能会影响您服务器上的许多其他程序。