1

Running a tool, I had to install Perl. Well, I've installed Strawberry-Perl and some modules fine. But when I make Statistics::Basic, it fails.

The process to make the module:

  • perl Makefile.PL (OK)
  • dmake test (FAIL)

C:\Perl\perl\lib\Basic>dmake test C:\Perl\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t t/05_load_them.t ................... # Test 1 got: "Can't locate Number/Format.pm in @INC (you may need to install the Number::Format module ) (@INC contains: C:\Perl\perl\lib\Basic\blib\lib C:\Perl\perl\lib\Basic\blib\arch C:/Perl/perl/site/lib C:/Perl/perl/vendor/lib C:/Perl/perl/lib .) at C:\Perl\perl\lib\Basic\blib\lib/Statistics/Basic.pm line 8.\nBEGIN failed--compilation aborted at C:\Perl\pe rl\lib\Basic\blib\lib/Statistics/Basic.pm line 8.\nCompilation failed in require at C:\Perl\perl\lib\Basic\blib\lib/Statistics/Bas ic/_OneVectorBase.pm line 7.\nBEGIN failed--compilation aborted at C:\Perl\perl\lib\Basic\blib\lib/Statistics/Basic/_OneVectorBase.pm line 7.\nCompilation failed in require at (eval 1) line 2.\nBEGIN failed--compilation aborted at (eval 1) line 2.\n" (t/05_load_them.t at li ne 12) t/05_load_them.t ................... 1/12 # Expected: "" # t/05_load_them.t line 12 is: ok($@, "");

. . .

I don't know Perl and I have no idea about the problem. How can I install this module?

3 Answers 3

5

The error message says

you may need to install the Number::Format module

So do this first. As there could be more dependencies, it's usually better to use a tool which is automatically resolving all dependencies, e.g. CPAN.pm:

cpan Statistics::Basic
Sign up to request clarification or add additional context in comments.

3 Comments

... it makes another error: Stopping: 'install' failed for 'Number::Format'.
Looking at matrix.cpantesters.org/?dist=Number-Format it seems that Number::Format has many test failures on Windows. I did not check how grave the test failures are. If you don't mind, then you can go into interactive mode of CPAN.pm by just typing cpan and then do a forced install force install Number::Format.
2

I've got the same problem with the module Statistics::Basic, so tried to install Number::Format and again problem dmake test failed!

So I've just tried make install command, and then install modules, and it works.

Comments

1

I am in Windows. It is solved by executing dmake install manually.

# install will be failed but you can get source downloaded
> cpan install Number::Format
> cd c:\strawberry\cpan\build
# replace [version] and [random string] with what you see in the directory
> cd Number-Format-[version]-[random string]
# ignore `dmake test`
> dmake install

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.