This is an extract from a personal how-to I wrote. It has since been transformed to a script (look at the OpenSSL section, obviously). It assumes you have a working installation of MinGW and that you have a working MSys console.
The make depend line is only needed on the most recent OpenSSL version if you specified any of the no-... options.
Note that this will compile OpenSSL in static mode.
If at some point you get a "make (e=2):" error, ensure you don't have another "make.exe" in your PATH or just type /bin/make instead of make.
You may, of course, need to compile it with other options (such as dynamic linking, or asm enabled). So feel free to look at the help perl Configure can provide to know more about the available options.
发布评论
评论(1)
这是我写的个人操作指南的摘录。此后,它已转换为 脚本(查看 OpenSSL部分,显然)。它假设您有一个可以正常工作的 MinGW 安装,并且有一个可以正常工作的 MSys 控制台。
OpenSSL
要构建 OpenSSL,您需要一个有效的 Perl 安装。
从其官方网站下载OpenSSL并解压压缩包。
Windows 32/64 位 - MinGW
您必须从 MSys 控制台运行这些命令。
对于 32 位:
对于 64 位:
然后:
如果您指定了任何
no-...
选项,则仅在最新的 OpenSSL 版本上才需要make dependent
行。请注意,这将以静态模式编译 OpenSSL。
如果在某个时候您收到“make (e=2):”错误,请确保您的 PATH 中没有另一个“make.exe”,或者只需键入
/bin/make
而不是 <代码>制作。当然,您可能需要使用其他选项(例如动态链接或启用 asm)来编译它。因此,请随意查看
perl Configure
可以提供的帮助,以了解有关可用选项的更多信息。This is an extract from a personal how-to I wrote. It has since been transformed to a script (look at the OpenSSL section, obviously). It assumes you have a working installation of MinGW and that you have a working MSys console.
OpenSSL
To build OpenSSL, you need a working Perl installation.
Download OpenSSL from its official website and decompress the archive.
Windows 32/64 bits - MinGW
You must run these commands from a MSys console.
For 32 bits:
For 64 bits:
Then:
The
make depend
line is only needed on the most recent OpenSSL version if you specified any of theno-...
options.Note that this will compile OpenSSL in static mode.
If at some point you get a "make (e=2):" error, ensure you don't have another "make.exe" in your PATH or just type
/bin/make
instead ofmake
.You may, of course, need to compile it with other options (such as dynamic linking, or asm enabled). So feel free to look at the help
perl Configure
can provide to know more about the available options.