chandantul has asked for the wisdom of the Perl Monks concerning the following question:

Hello Leaders, I am facing an issue with installation of DateTime::Format::Strptime and i am getting below error while its doing make test lastly during installation. I need solution of it.

# +-----+----+----------------------------------------------------+ # Seeded srand with seed '20190531' from local date. t/tap-bug-in-test2.t ... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests Test Summary Report ------------------- t/tap-bug-in-test2.t (Wstat: 256 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 1 Files=4, Tests=4, 6 wallclock secs ( 0.06 usr + 0.20 sys = 0.26 CPU +) Result: FAIL Failed 1/4 test programs. 1/4 subtests failed. dmake.exe: Error code 129, while making 'test_dynamic' DROLSKY/Test2-Plugin-NoWarnings-0.07.tar.gz C:\strawberry\c\bin\dmake.exe test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports DROLSKY/Test2-Plugin-NoWarnings-0.07.tar.gz Stopping: 'install' failed for 'Test2::Plugin::NoWarnings'. Failed during this command: DROLSKY/Test2-Plugin-NoWarnings-0.07.tar.gz : make_test NO

Replies are listed 'Best First'.
Re: Installation error of DateTime::Format::Strptime
by 1nickt (Canon) on May 31, 2019 at 18:32 UTC

    Hi, the module itself is not failing to install; one of the dependencies (Test2::Plugin::NoWarnings) it has for testing is failing: see this bug report.

    You can force the install and/or install without testing, either for the module you want, or for the dependency (although the latter may not solve the problem; could be that the test is failing because the test module doesn't work on Windows). See the doc for your CPAN client.

    Hope this helps!


    The way forward always starts with a minimal test.

      I got it fix by forcing the installation

      perl -MCPAN -e "CPAN::Shell->notest('install', 'DateTime::Format::Strptime')
Re: Installation error of DateTime::Format::Strptime
by stevieb (Canon) on May 31, 2019 at 18:15 UTC

    It doesn't appear as though there are any test failures for the DateTime::Format::Strptime distribution, and I see you're running Strawberry (installed) on Windows. I can't replicate here.

    Could you please post the full output of the perl -V (Capital "V") command and I'll do some further testing? Also, perhaps try the install one more time. It could have been simply a one-off glitch: cpanm DateTime::Format::Strptime.

    -stevieb