在 Windows 上构建 perl 5.14.2 - 出现错误 NMAKE : fatal error U1077: miniperl.exe' :返回代码“0x1”
在 Windows 上构建 perl 5.14.2 - 出现错误 NMAKE:致命错误 U1077:miniperl.exe':返回代码“0x1”,而在 perl 源下的 win32 文件夹中运行“nmake -logo”后调用以下命令。
../miniperl.exe -I../lib ../make_ext.pl "MAKE=nmake -nologo" --dir=../cpan --dir=../dist --dir=../ext - -nonxs
以前有人遇到过这个问题吗?请告诉我
Building perl 5.14.2 on windows - getting error NMAKE : fatal error U1077: miniperl.exe' : return code '0x1' while the following command is invoked after running "nmake -logo" from win32 folder under perl source.
../miniperl.exe -I../lib ../make_ext.pl "MAKE=nmake -nologo" --dir=../cpan --dir=../dist --dir=../ext --nonxs
Did anybody face this problem before? Please let me know
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
与 Mac 和 Unix 不同,Windows 没有安装 C 编译器。因此,如果没有更多信息,就很难准确找出问题出在哪里。例如,您是否安装了 GCC 编译器或其他标准 C 编译器?
在 Windows 上获取最新且完整版本的 Perl 的最简单方法是使用两个标准 Windows 发行版之一:
许多人喜欢 Strawberry Perl,因为它与 Unix 上的 Perl 相同。相同的模块,相同的库。其他人更喜欢 ActivePerl,因为它默认包含您可能想要在 Windows 上使用的所有特殊 Windows 模块,以执行诸如更新注册表、与 Windows 域通信以检查凭据等操作。
事实是,这两个版本都是或多或少是一样的。关于为什么应该使用其中之一的两个主要抱怨:
两者都不正确。您可以在 Strawberry Perl 中安装和下载 Win32 模块,它将运行 ActivePerl 执行的每个脚本。
而且,如果您想安装需要编译的模块,Active Perl 现在可以安装 Strawberry Perl 使用的相同 C 编译器。说明是在线。它适用于几乎所有 CPAN 模块。
因此,除非您有特殊原因从头开始构建 Perl,否则我建议您只下载 ActivePerl 或 Strawberry Perl —— 特别是如果您不太熟悉 C/C++ 和 Make。
Unlike Mac and Unix, Windows doesn't' come with a C compiler installed. Thus, it can be difficult to figure out exactly where things are going wrong without more information. For example, did you install the GCC compiler or another standard C compiler?
The easiest way to get the most recent and complete version of Perl on Windows is to use one of the two standard Windows distributions:
Many people like Strawberry Perl because it's a duplicate of what you find on Unix. The same modules, the same libraries. Others prefer ActivePerl because it includes by default all of the special Windows modules that you probably want to use on Windows to do things like update the registry, talk to the Windows domain to check credentials, etc.
The truth is that both of these versions are more or less the same. The two main complaints of why you should use one over the other:
Are both not correct. You can install and download the Win32 modules in Strawberry Perl and it'll run about every script that ActivePerl does.
And, Active Perl can now install the same C compiler Strawberry Perl uses if you want to install a module that requires compilation. The directions are online. It works with almost all the CPAN modules.
So, unless you have a special reason to build Perl from scratch, I recommend you just download ActivePerl or Strawberry Perl -- especially if you are not really familiar with C/C++ and Make.