我正在使用为x86_64-linux-gnu-thread-multi构建的Perl 5,版本18,subversion 2(v5.18.2),我正在尝试使用cpan(使用sudo)安装UNIVERSAL::DOES
install UNIVERSAL::DOES
我得到以下日志:
Reading '/home/aris/.cpan/Metadata'
Database was generated on Tue, 10 Jun 2014 02:17:02 GMT
Running install for module 'UNIVERSAL::DOES'
Checksum for /home/aris/.cpan/sources/authors/id/G/GF/GFUJI/UNIVERSAL-DOES-0.004.tar.gz ok
Scanning cache /home/aris/.cpan/build for sizes
............................................................................DONE
'YAML' not installed, will not store persistent state
Configuring G/GF/GFUJI/UNIVERSAL-DOES-0.004.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for UNIVERSAL::DOES
Writing MYMETA.yml and MYMETA.json
GFUJI/UNIVERSAL-DOES-0.004.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for G/GF/GFUJI/UNIVERSAL-DOES-0.004.tar.gz
cp lib/UNIVERSAL/DOES.pm blib/lib/UNIVERSAL/DOES.pm
Manifying blib/man3/UNIVERSAL::DOES.3pm
GFUJI/UNIVERSAL-DOES-0.004.tar.gz
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t
t/00_load.t ... 1/1 # Testing UNIVERSAL::DOES/0.004
t/00_load.t ... ok
t/01_basic.t .. 1/45
# Failed test at t/01_basic.t line 96.
# Failed test at t/01_basic.t line 97.
# Looks like you failed 2 tests of 45.
t/01_basic.t .. Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/45 subtests
Test Summary Report
-------------------
t/01_basic.t (Wstat: 512 Tests: 45 Failed: 2)
Failed tests: 33-34
Non-zero exit status: 2
Files=2, Tests=46, 0 wallclock secs ( 0.04 usr 0.01 sys + 0.07 cusr 0.01 csys = 0.13 CPU)
Result: FAIL
Failed 1/2 test programs. 2/46 subtests failed.
make: *** [test_dynamic] Error 2
GFUJI/UNIVERSAL-DOES-0.004.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports GFUJI/UNIVERSAL-DOES-0.004.tar.gz
Failed during this command:
GFUJI/UNIVERSAL-DOES-0.004.tar.gz : make_test NO
这是安装它的正确方法吗?我错过了什么吗?当我做sudo apt-get install perl
时,我发现所有内容都是最新的。
答案 0 :(得分:2)
您尝试安装UNIVERSAL::DOES
的cpan模块专门用于在DOES
添加到Core "UNIVERSAL::DOES()" in perl5100delta
时v5.10之前的perl版本。
您可以找到该模块并使用以下方法进行检查:
perl -MUNIVERSAL -e 'print $INC{"UNIVERSAL.pm"}'
输出(在我的系统上)
C:/strawberry/perl/lib/UNIVERSAL.pm