PAR :: Packer无法使用CPAN安装

时间:2014-05-19 15:05:16

标签: perl module cpan par packer

我正在尝试在Red Hat上从CPAN安装PAR :: Packer。 不幸的是,我在安装过程中遇到以下错误,我无法弄清楚导致它的原因:

cpan[4]> install PAR::Packer         
Running install for module 'PAR::Packer'
Checksum for /root/.cpan/sources/authors/id/R/RS/RSCHUPP/PAR-Packer-1.018.tar.gz ok
Use of uninitialized value in scalar assignment at /usr/lib/perl5/5.8.8/CPAN/Distribution.pm line 1838.
Use of uninitialized value in scalar assignment at /usr/lib/perl5/5.8.8/CPAN/Distribution.pm line 1839.
Configuring R/RS/RSCHUPP/PAR-Packer-1.018.tar.gz with Makefile.PL
Use of uninitialized value in scalar assignment at /usr/lib/perl5/5.8.8/CPAN/Distribution.pm line 1859.
Use of uninitialized value in scalar assignment at /usr/lib/perl5/5.8.8/CPAN/Distribution.pm line 1860.
*** You have extra Perl library paths set in your environment.
    Please note that these paths (set with PERL5LIB or PERLLIB)
    are not honored by perl when running under taint mode, which
    may lead to problems. This is a limitation (by design) of
    Perl, not of PAR::Packer; but some of the problems may
    manifest here during installation.
Checking if your kit is complete...
Looks good
Prototype mismatch: sub main::prompt: none vs ($;$) at /usr/lib/perl5/5.8.8/ExtUtils/MakeMaker.pm line 221
"bsd_glob" is not defined in %File::Glob::EXPORT_TAGS at /usr/lib/perl5/5.8.8/ExtUtils/MakeMaker.pm line 221
ERROR from evaluation of /root/.cpan/build/PAR-Packer-1.018-CWQJBv/myldr/Makefile.PL: Can't continue after import errors at ./Makefile.PL line 14
BEGIN failed--compilation aborted at ./Makefile.PL line 14.
Warning: No success on command[/usr/bin/perl Makefile.PL]
  RSCHUPP/PAR-Packer-1.018.tar.gz
  /usr/bin/perl Makefile.PL -- NOT OK
Failed during this command:
 RSCHUPP/PAR-Packer-1.018.tar.gz              : writemakefile NO '/usr/bin/perl Makefile.PL' returned status 65280
cpan[5]> 

有什么想法吗?

2 个答案:

答案 0 :(得分:0)

/root/.cpan/build/PAR-Packer-1.018-CWQJBv/myldr/Makefile.PL:在./Makefile.PL第14行导入错误后无法继续 以上评论......似乎没有人对此问题感到烦恼。然后重新构建它。

答案 1 :(得分:0)

改变

use File::Glob ':bsd_glob';

各个文件中的

use File::Glob 'bsd_glob';

Perldoc:这会导出除标志之外的函数。

bsd_glob 导出标记实际上是在@{$EXPORT_TAGS{'glob'}}列表(/usr/lib/perl/5.14/File/Glob.pm模块)中导出的。相反,未定义/指定:bsd_glob 标记。

执行quick search  在perl v5.16.0中添加了:bsd_glob标记。使用此类标记下线的代码应更好use 5.016或降级为(现在不鼓励)use File::Glob ':glob'

对于POSIX flags,请使用完全限定名称,即。 File::Glob::GLOB_NOSORTFile::Glob::GLOB_ERROR

相关问题