在草莓上编译Statistics :: Basic失败

时间:2013-07-18 09:42:45

标签: perl

运行工具,我不得不安装Perl。好吧,我已经安装了Strawberry-Perl和一些模块。但是当我Statistics::Basic时,它失败了。

制作模块的过程:

  • perl Makefile.PL(好)
  • dmake test(失败)
  

C:\ Perl \ perl \ lib \ Basic> dmake test C:\ Perl \ perl \ bin \ perl.exe   " -MExtUtils ::命令:: MM" " -e" " test_harness(0,' blib \ lib',   ' BLIB \拱')" t / * .t t / 05_load_them.t ...................#测试1得到:   "无法在@INC中找到Number / Format.pm(您可能需要安装   Number :: Format模块)(@INC包含:   C:\ Perl的\ Perl的\ LIB \基本\ 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行   8. \ nBEGIN失败 - 编译在C:\ Perl \ pe rl \ lib \ Basic \ blib \ lib / Statistics / Basic.pm第8行中止。\ n编译   失败的要求   C:\ Perl的\ Perl的\ LIB \基本\ BLIB \ LIB /统计/巴斯   ic / _OneVectorBase.pm第7行。\ nBEGIN失败 - 编译中止   C:\ Perl的\ Perl的\ LIB \基本\ BLIB \ LIB /统计/基本/ _OneVectorBase.pm   第7行。\ n在(eval 1)第2行的require中编译失败。\ nBEGIN   失败 - 编译在(eval 1)第2行中止。\ n" (吨/ 05_load_them.t   at li ne 12)t / 05_load_them.t ................... 1/12#预期:"" #   t / 05_load_them.t第12行是:ok($ @,"");

     

。 。

我不知道Perl,我不知道这个问题。我该如何安装这个模块?

3 个答案:

答案 0 :(得分:4)

错误消息显示

you may need to install the Number::Format module

首先这样做。由于可能存在更多依赖关系,因此通常最好使用自动解析所有依赖关系的工具,例如CPAN.pm:

cpan Statistics::Basic

答案 1 :(得分:2)

我在模块Statistics :: Basic中遇到了同样的问题,因此尝试安装Number::Format并再次遇到问题dmake test失败!

所以我只是尝试了make install命令,然后安装模块,它就可以运行。

答案 2 :(得分:0)

我在Windows中。它通过手动执行dmake install来解决。

# 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
相关问题