我在windows7中使用了草莓perl。我需要安装Math::Random。
使用命令:
1. perl Makefile.PL phrtsd_orig
2. "C:/MinGW/bin/mingw32-make.exe"
3. "C:/MinGW/bin/mingw32-make.exe" test
4. "C:/MinGW/bin/mingw32-make.exe" install
但是第二个命令给出错误:
跳过blib/lib/Math/test1.pl(未更改)跳过blib/lib/Math/example.pl(未更改)跳过blib/lib/Math/test2.pl(未更改)跳过blib/lib/Math/Random.pm(未更改)运行Mkbootstrap for Math::Random()
chmod 644"随机.bs"mingw32-make.exe:***没有要成为目标的规则'/usr/share/perl5/core_perl/ExtUtils/typemap',"Random.c"需要。停止。
如何解决这个问题?
Strawberry Perl,Windows 7 64位:
Math-Random-0.72>perl Makefile.PL phrtsd_orig
dmake
dmake test
dmake install
工作良好。Strawberry Perl附带了自己构建的工具,可以将它们用于构建模块。