OpenSSL "perl Configure mingw" 退出并出现错误 "perl implementation doesn't produce Unix like paths"

OpenSSL "perl Configure mingw" exits with error "perl implementation doesn't produce Unix like paths"

我正在尝试在 Windows 上使用 MinGW 从源代码编译 OpenSSL(截至今天使用 git master)。 运行 perl Configure mingw no-asm returns 一个错误:

    This perl implementation doesn't produce Unix like paths (with forward slash
    directory separators).  Please use an implementation that matches your
    building platform.

    This Perl version: 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.

确实应该更新文本以明确说明 MSYS2(理论上 MSYS 可能有效,但 MSYS 提供的 perl 版本太旧)。

安装 MSYS2 perl,该错误消息应该会消失。