Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Strawberry Perl cannot locate Statistics/Basic.pm

by marto (Cardinal)
on Jul 11, 2014 at 20:07 UTC ( [id://1093301]=note: print w/replies, xml ) Need Help??


in reply to Strawberry Perl cannot locate Statistics/Basic.pm

Please read my update at the end of this post.

Statistics::Basic is not a core module and is not part of the Strawberry Perl distribution. Normally to install this open a command prompt and type:

cpan Statistics::Basic

This should retrieve and install Statistics::Basic and its dependencies.However you'll need to patch it (because of this bug on Number::Format, a prerequisite) like so, again from the command line:

cpan cpan> look Number::Format Database was generated on Fri, 11 Jul 2014 11:23:06 GMT Running look for module 'Number::Format' Trying to open a subshell in the build directory... Checksum for D:\cpan\authors\id\W\WR\WRW\Number-Format-1.73.tar.gz ok Scanning cache D:\perl\cpan\build for sizes ...................................................................... +......DONE Working directory is D:\perl\cpan\build\Number-Format-1.73-L6b3hX Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. D:\perl\cpan\build\Number-Format-1.73-L6b3hX>

At this point save this file to the path displayed in your prompt (in my example it's D:\perl\cpan\build\Number-Format-1.73-L6b3hX, it'll be slightly different for you). Then back at the command prompt:

D:\perl\cpan\build\Number-Format-1.73-L6b3hX>patch --binary < Number_F +ormat.pm.patch patching file Format.pm D:\perl\cpan\build\Number-Format-1.73-L6b3hX>perl Makefile.PL Checking if your kit is complete... Looks good Generating a dmake-style Makefile Writing Makefile for Number::Format Writing MYMETA.yml and MYMETA.json D:\perl\cpan\build\Number-Format-1.73-L6b3hX>dmake cp Format.pm blib\lib\Number\Format.pm D:\perl\cpan\build\Number-Format-1.73-L6b3hX>dmake test D:\perl\perl\bin\perl.exe "-MExtUtils::Command::MM" "-MTest::Harness" +"-e" "undef *Test::Harness::Switches; test_harness(0, 'blib\lib', 'bl +ib\arch')" t/*.t t/format_bytes.t ..... ok t/format_negative.t .. ok t/format_number.t .... ok t/format_picture.t ... ok t/format_price.t ..... ok t/locale.t ........... ok t/object.t ........... ok t/round.t ............ ok t/unformat_number.t .. ok All tests successful. Files=9, Tests=149, 2 wallclock secs ( 0.11 usr + 0.03 sys = 0.14 C +PU) D:\perl\cpan\build\Number-Format-1.73-L6b3hX>dmake install Appending installation info to D:\perl\perl\lib/perllocal.pod

At this stage you manually patched and installed Number::Format, now your goal was Statistics::Basic, we drop back to the cpan shell and install it as normal:

D:\perl\cpan\build\Number-Format-1.73-L6b3hX>exit cpan> install Statistics::Basic

All going well cpan will now install the module. Let us know if you have problems.

Update: This isn't a stupid question, not knowing how to do this doesn't make you dumb. Nobody was born knowing how to do this. Take a look at PerlMonks for the Absolute Beginner from the Tutorials section, along with How do I post a question effectively?.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1093301]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-03-28 20:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found