我正在尝试在 Windows 上使用 MinGW 从源代码(从今天开始使用 git master)编译 OpenSSL。运行perl Configure mingw no-asm
返回错误:
这个 perl 实现不会产生类似 Unix 的路径(带有正斜杠 目录分隔符)。请使用与您匹配的实现 建设平台。 此 Perl 版本:5.24.1 for MSWin32-x86-multi-thread-64int
这很有趣,因为这意味着它会检查我是否使用 Unix 而不是 Windows。相比之下,跑步perl Configure VC-WIN32 no-asm
效果很好。
在这种情况下,它是否应该检查 Unix?或者也许我遗漏了一些东西,例如指定我所在平台的方法?
OpenSSL mingw 构建预计将从 MSYS2 shell(使用 Unix 样式路径)运行并使用 msys2 perl。从 OpenSSL 顶级目录中的文件“NOTES.PERL”:
Notes on Perl on Windows
------------------------
There are a number of build targets that can be viewed as "Windows".
Indeed, there are VC-* configs targeting VisualStudio C, as well as
MinGW and Cygwin. The key recommendation is to use "matching" Perl,
one that matches build environment. For example, if you will build
on Cygwin be sure to use the Cygwin package manager to install Perl.
For MSYS builds use the MSYS provided Perl. For VC-* builds we
recommend ActiveState Perl, available from
http://www.activestate.com/ActivePerl.
Run Code Online (Sandbox Code Playgroud)
实际上,应该更新文本以明确表示 MSYS2(理论上 MSYS 可能有效,但 MSYS 提供的 perl 版本太旧)。
安装 MSYS2 perl,错误消息就会消失。
归档时间: |
|
查看次数: |
5411 次 |
最近记录: |