Perl 错误255和";不能';t查找诊断数据“;安装cpan内联包时

Perl 错误255和";不能';t查找诊断数据“;安装cpan内联包时,perl,cpan,Perl,Cpan,当我试图通过cpan>install Inline安装带有cpan的内联软件包时,最后出现以下错误: make: *** [test_dynamic] Error 255 SISYPHUS/Inline-0.53.tar.gz /opt/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports SISYPHUS/Inline-0.5

当我试图通过
cpan>install Inline
安装带有cpan的内联软件包时,最后出现以下错误:

make: *** [test_dynamic] Error 255
  SISYPHUS/Inline-0.53.tar.gz
  /opt/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports SISYPHUS/Inline-0.53.tar.gz
Running make install
  make test had returned bad status, won't install without force
Failed during this command:
 SISYPHUS/Inline-0.53.tar.gz                  : make_test NO
以下是完整的安装日志:

cpan[1]> install Inline
CPAN: Storable loaded ok (v2.18)
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
CPAN: Compress::Zlib loaded ok (v2.008)
CPAN: YAML loaded ok (v0.88)
Going to read /root/.cpan/build/
............................................................................DONE
Found 1 old build, restored the state of 1
............................................................................DONE
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
  Database was generated on Wed, 08 Jan 2014 07:41:07 GMT
  HTTP::Date not available
..............
  New CPAN.pm version (v2.00) available.
  [Currently running version is v1.9205]
  You might want to try
    install CPAN
    reload cpan
  to both upgrade CPAN.pm and run the new version without leaving
  the current session.

CPAN: Time::HiRes loaded ok (v1.9711)

..............................................................DONE
Going to read /root/.cpan/sources/modules/03modlist.data.gz
............................................................................DONE
Going to write /root/.cpan/Metadata
Running install for module 'Inline'
Running make for S/SI/SISYPHUS/Inline-0.53.tar.gz
  Has already been unwrapped into directory /root/.cpan/build/Inline-0.53-gk9HIk
  Has already been made
Running make test
make[1]: Entering directory `/root/.cpan/build/Inline-0.53-gk9HIk/C'
make[1]: Leaving directory `/root/.cpan/build/Inline-0.53-gk9HIk/C'
PERL_DL_NONLAZY=1 /share/MD0_DATA/.qpkg/Optware/bin/perl5.10.0 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00init...............ok
t/01usages.............couldn't find diagnostic data in /opt/lib/perl5/5.10.0/pods/perldiag.pod blib/lib . /root/.cpan/build/Inline-0.53-gk9HIk/blib/lib /root/.cpan/build/Inline-0.53-gk9HIk/blib/arch /opt/lib/perl5/5.10.0/arm-linux /opt/lib/perl5/5.10.0 /opt/lib/perl5/site_perl/5.10.0/arm-linux /opt/lib/perl5/site_perl/5.10.0/arm-none-linux-gnueabi /opt/lib/perl5/site_perl/5.10.0 t/01usages.t at /opt/lib/perl5/5.10.0/diagnostics.pm line 268, <POD_DIAG> line 647.
Compilation failed in require at t/01usages.t line 5, <POD_DIAG> line 647.
BEGIN failed--compilation aborted at t/01usages.t line 5, <POD_DIAG> line 647.
t/01usages.............dubious
        Test returned status 9 (wstat 2304, 0x900)
t/02config.............couldn't find diagnostic data in /opt/lib/perl5/5.10.0/pods/perldiag.pod blib/lib . /root/.cpan/build/Inline-0.53-gk9HIk/blib/lib /root/.cpan/build/Inline-0.53-gk9HIk/blib/arch /opt/lib/perl5/5.10.0/arm-linux /opt/lib/perl5/5.10.0 /opt/lib/perl5/site_perl/5.10.0/arm-linux /opt/lib/perl5/site_perl/5.10.0/arm-none-linux-gnueabi /opt/lib/perl5/site_perl/5.10.0 t/02config.t at /opt/lib/perl5/5.10.0/diagnostics.pm line 268, <POD_DIAG> line 647.
Compilation failed in require at t/02config.t line 5, <POD_DIAG> line 647.
BEGIN failed--compilation aborted at t/02config.t line 5, <POD_DIAG> line 647.
t/02config.............dubious
        Test returned status 9 (wstat 2304, 0x900)
t/03errors.............couldn't find diagnostic data in /opt/lib/perl5/5.10.0/pods/perldiag.pod blib/lib . /root/.cpan/build/Inline-0.53-gk9HIk/blib/lib /root/.cpan/build/Inline-0.53-gk9HIk/blib/arch /opt/lib/perl5/5.10.0/arm-linux /opt/lib/perl5/5.10.0 /opt/lib/perl5/site_perl/5.10.0/arm-linux /opt/lib/perl5/site_perl/5.10.0/arm-none-linux-gnueabi /opt/lib/perl5/site_perl/5.10.0 t/03errors.t at /opt/lib/perl5/5.10.0/diagnostics.pm line 268, <POD_DIAG> line 647.
Compilation failed in require at t/03errors.t line 5, <POD_DIAG> line 647.
BEGIN failed--compilation aborted at t/03errors.t line 5, <POD_DIAG> line 647.
t/03errors.............dubious
        Test returned status 9 (wstat 2304, 0x900)
t/04create.............couldn't find diagnostic data in /opt/lib/perl5/5.10.0/pods/perldiag.pod blib/lib . /root/.cpan/build/Inline-0.53-gk9HIk/blib/lib /root/.cpan/build/Inline-0.53-gk9HIk/blib/arch /opt/lib/perl5/5.10.0/arm-linux /opt/lib/perl5/5.10.0 /opt/lib/perl5/site_perl/5.10.0/arm-linux /opt/lib/perl5/site_perl/5.10.0/arm-none-linux-gnueabi /opt/lib/perl5/site_perl/5.10.0 t/04create.t at /opt/lib/perl5/5.10.0/diagnostics.pm line 268, <POD_DIAG> line 647.
Compilation failed in require at t/04create.t line 5, <POD_DIAG> line 647.
BEGIN failed--compilation aborted at t/04create.t line 5, <POD_DIAG> line 647.
t/04create.............dubious
        Test returned status 9 (wstat 2304, 0x900)
t/05files..............couldn't find diagnostic data in /opt/lib/perl5/5.10.0/pods/perldiag.pod blib/lib . /root/.cpan/build/Inline-0.53-gk9HIk/blib/lib /root/.cpan/build/Inline-0.53-gk9HIk/blib/arch /opt/lib/perl5/5.10.0/arm-linux /opt/lib/perl5/5.10.0 /opt/lib/perl5/site_perl/5.10.0/arm-linux /opt/lib/perl5/site_perl/5.10.0/arm-none-linux-gnueabi /opt/lib/perl5/site_perl/5.10.0 t/05files.t at /opt/lib/perl5/5.10.0/diagnostics.pm line 268, <POD_DIAG> line 647.
Compilation failed in require at t/05files.t line 5, <POD_DIAG> line 647.
BEGIN failed--compilation aborted at t/05files.t line 5, <POD_DIAG> line 647.
t/05files..............dubious
        Test returned status 9 (wstat 2304, 0x900)
t/06rewrite_config.....ok
t/07rewrite2_config....ok
Failed Test  Stat Wstat Total Fail  List of Failed
-------------------------------------------------------------------------------
t/01usages.t    9  2304    ??   ??  ??
t/02config.t    9  2304    ??   ??  ??
t/03errors.t    9  2304    ??   ??  ??
t/04create.t    9  2304    ??   ??  ??
t/05files.t     9  2304    ??   ??  ??
Failed 5/8 test scripts. 0/5 subtests failed.
Files=8, Tests=5,  3 wallclock secs ( 2.30 cusr +  0.14 csys =  2.44 CPU)
Failed 5/8 test programs. 0/5 subtests failed.
make: *** [test_dynamic] Error 255
  SISYPHUS/Inline-0.53.tar.gz
  /opt/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports SISYPHUS/Inline-0.53.tar.gz
Running make install
  make test had returned bad status, won't install without force
Failed during this command:
 SISYPHUS/Inline-0.53.tar.gz                  : make_test NO
以下是我正在使用的perl版本:

[~] # perl --version
This is perl, v5.10.0 built for arm-none-linux-gnueabi

首先调查第一个错误始终是一个很好的做法。在这种情况下,如下所示:

在中找不到诊断数据 (复制/粘贴中排除的路径的长列表) 在t/01usages.t第5行的require中编译失败

通过查看,我们发现第5行是:

布拉格语是语言的一部分。如果
diagnostics
缺少必要的文件,则表明问题在于您的Perl安装已损坏或不完整(这可能是“损坏”的子集造成的)。首先解决这个问题

:“首先解决第一个问题。”在这种情况下,我们发现问题与模块无关,而是与Perl安装的质量有关。

As,测试在
使用诊断时失败
您可以通过自己执行这一行来检查这一点(
perl-e'use diagnostics;'

尝试从
perldiag.pod
(错误消息中提到)读取诊断消息。 看起来你的系统上没有


因此,您需要使用与Perl对应的版本的该文件(或将其安装到指定路径)安装包。例如,在Cygwin中,它位于
perl_pods
包中,您猜,默认情况下,该包没有安装。

好的,我在另一个论坛中注意到,我需要自己编译perl以使其工作(至少在QNAP NAS上)。我试图编译它,但又出现了另一个错误。我在论坛上又读了一遍,解决方案似乎是我也必须自己构建gcc编译器。不幸的是,当我尝试执行此操作时,还会出现一些错误。我确信答案是“因为我可以”,但为什么在NAS设备上需要Inline::C?(我也很喜欢这种项目)…是的,你可能是对的:首先你需要一个C编译器,然后你需要一个完整的Perl安装,然后你应该能够构建Inline::Cinline@perl.org邮件列表。我怀疑名单上是否有人这样做过,但我们可能对进度报告感兴趣。:)+1还要注意@DavidO:为了回答您的问题,我需要perl来使用。我在我的QNAP NAS上运行一个Logitech squeezebox服务器,我希望能够播放我的gmusic音乐。无论如何,我似乎报告了同样的问题。
[~] # perl --version
This is perl, v5.10.0 built for arm-none-linux-gnueabi
use diagnostics;