Perl:安装Statistics :: Normality失败

时间:2019-04-02 17:09:29

标签: perl cpan

我正在尝试安装Perl的Statistics::Normalityhttps://metacpan.org/pod/Statistics::Normality),但出现错误,我不知道如何从CPAN 2.26和perl 5.26.1修复命令行。 >

我已经尝试过该页面上的安装说明,但是会产生错误

Reading '/home/con/.local/share/.cpan/Metadata'   Database was generated on Tue, 02 Apr 2019 16:17:03 GMT Running install for module 'Statistics::Normality' Checksum for /home/con/.local/share/.cpan/sources/authors/id/M/MW/MWENDL/Statistics-Normality-0.01.tar.gz ok Scanning cache /home/con/.local/share/.cpan/build for sizes ............................................................................DONE Configuring M/MW/MWENDL/Statistics-Normality-0.01.tar.gz with Makefile.PL Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Statistics::Normality Writing MYMETA.yml and MYMETA.json   MWENDL/Statistics-Normality-0.01.tar.gz   /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK Running make for M/MW/MWENDL/Statistics-Normality-0.01.tar.gz cp lib/Statistics/Normality.pm blib/lib/Statistics/Normality.pm Manifying 1 pod document   MWENDL/Statistics-Normality-0.01.tar.gz   /usr/bin/make -- OK Running make test for MWENDL/Statistics-Normality-0.01.tar.gz PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-load.t ....... 1/1 # Testing Statistics::Normality 0.01, Perl 5.026001, /usr/bin/perl t/00-load.t ....... ok    t/01-normality.t .. 1/? # Tests were run but no plan was declared and done_testing() was not seen. t/01-normality.t .. Dubious, test returned 254 (wstat 65024, 0xfe00) All 4 subtests passed  t/pod-coverage.t .. 1/1 
#   Failed test 'Pod coverage on Statistics::Normality'
#   at /usr/local/share/perl/5.26.0/Test/Pod/Coverage.pm line 133.
# Coverage for Statistics::Normality is 0.0%, with 2 naked subroutines:
#   dagostino_k_square_test
#   shapiro_wilk_test
# Looks like you failed 1 test of 1. t/pod-coverage.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests  t/pod.t ........... ok   

Test Summary Report
------------------- t/01-normality.t (Wstat: 65024 Tests: 4 Failed: 0)   Non-zero exit status: 254   Parse errors: No plan found in TAP output t/pod-coverage.t (Wstat: 256 Tests: 1 Failed: 1)   Failed test:  1   Non-zero exit status: 1 Files=4, Tests=7,  0 wallclock secs ( 0.03 usr
0.00 sys +  0.18 cusr  0.01 csys =  0.22 CPU) Result: FAIL Failed 2/4 test programs. 1/7 subtests failed. Makefile:822: recipe for target 'test_dynamic' failed make: *** [test_dynamic] Error 255   MWENDL/Statistics-Normality-0.01.tar.gz   /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try:   reports MWENDL/Statistics-Normality-0.01.tar.gz Failed during this command:  MWENDL/Statistics-Normality-0.01.tar.gz      : make_test NO

我不知道如何解决这个问题:(

1 个答案:

答案 0 :(得分:3)

如果这是唯一的测试错误,那就是文档问题,无需担心。强制安装模块。

$ cpan -f Statistics::Normality