2

我正在尝试在 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]> 

有任何想法吗?

4

2 回答 2

0

/root/.cpan/build/PAR-Packer-1.018-CWQJBv/myldr/Makefile.PL: Can't continue after import errors at ./Makefile.PL line 14 comment above line...似乎没有人在意这个问题。并再次构建它。

于 2014-05-30T09:13:52.537 回答
0

从改变

use File::Glob ':bsd_glob';

use File::Glob 'bsd_glob';在各自的文件中。

Perldoc:这会导出不包括标志的函数。

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

在perl v5.16.0中添加了快速 搜索 :bsd_glob标签。使用这种标签下划线的代码应该更好或降级为(现在不鼓励)。use 5.016use File::Glob ':glob'

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

于 2017-09-06T16:09:40.840 回答