windows 安装 CPAN 模块的问题
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6600793/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Problems installing CPAN Modules
提问by Shahab
i'm having loads of problem in trying to install CPAN Modules. Using the cpan.exe, I try to install a module with, for example, "install Win32::IE::Mecahnize" but I end up hitting a wall. In the beginning it find dmake.EXE and is okay, but when the install finishes it says dmake.exe is NOT OK, and Dmake.exe Error code 255 , while making 'test-dynamic'.
我在尝试安装 CPAN 模块时遇到了很多问题。使用 cpan.exe,我尝试安装一个模块,例如“安装 Win32::IE::Mecahnize”,但我最终撞到了墙。一开始它找到 dmake.EXE 并且没问题,但是当安装完成时它说 dmake.exe 不正常,并且 Dmake.exe 错误代码 255 ,同时进行“测试动态”。
I'm very confused as to what is happening and why its not working?? Help is much appreciated.
我对正在发生的事情以及为什么它不起作用感到非常困惑?非常感谢帮助。
This is the current error I get:dmake.EXE: Error code 255, while making 'test_dynamic'
C:\strawberry\c\bin\dmake.EXE test -- NOT OK
Running make install
make test had returned bad status, won't install without force
ABELTJE/Win32-IE-Mechanize-0.009.tar.gz : make_text NO
这是我得到的当前错误:dmake.EXE: Error code 255, while making 'test_dynamic'
C:\strawberry\c\bin\dmake.EXE test -- NOT OK
Running make install
make test had returned bad status, won't install without force
ABELTJE/Win32-IE-Mechanize-0.009.tar.gz : make_text NO
回答by brian d foy
It's not your fault. That module doesn't work for anyone. When you run into a failure with a module, investigate it to see if other people are having problems. You can look on its CPAN Search pageto see that there are no passing testers reports for that distribution. That distribution should not install without force. We cover some of this in Effective Perl Programming's section on researching modules.
这不是你的错。该模块不适用于任何人。当您遇到某个模块的故障时,请对其进行调查,看看其他人是否遇到了问题。您可以在其 CPAN 搜索页面上查看该发行版没有通过测试人员的报告。该发行版不应该在没有强制力的情况下安装。我们在Effective Perl Programming的关于研究模块的部分中介绍了其中的一些内容。
Can you install other modules without a problem?
你能安装其他模块没有问题吗?
回答by David W.
ya, well here's the thing, I have both ActivePerl and Strawberry Perl installed, is that a problem?
是的,事情就是这样,我同时安装了 ActivePerl 和 Strawberry Perl,这是一个问题吗?
Shouldn't be an issue. However, you need to make sure that Strawberry Perl's distro contains the binaries and libraries you need to build and install non-text only modules. You need to make sure you're using Strawberry Perl's stuff and not ActivePerl. I recommend putting Strawberry Perl in your PATH, but not ActivePerl.
应该不是问题。但是,您需要确保 Strawberry Perl 的发行版包含构建和安装非纯文本模块所需的二进制文件和库。你需要确保你使用的是 Strawberry Perl 的东西而不是 ActivePerl。我建议将 Strawberry Perl 放在您的 PATH 中,而不是 ActivePerl。
Easiest thing to do is not use CPAN, but ActivePerl's own PPMmanager. ActivePerl has probably prebuilt about 90% of the CPAN modules and have them available via their PPMmanager. Try that.
最简单的方法不是使用 CPAN,而是使用 ActivePerl 自己的PPM管理器。ActivePerl 可能已经预先构建了大约 90% 的 CPAN 模块,并通过他们的PPM管理器提供它们。试试那个。