美文网首页
在windows上编译openssl

在windows上编译openssl

作者: 有m道理 | 来源:发表于2021-04-26 13:26 被阅读0次

原因

为什么要编译源码呢?首先,我找不到lib库;其次,我必须要用这里边的库文件;所以,既然不得不做,那就去做吧

源码安装

首先,可以去官网看看,官网地址:https://www.openssl.org/source/
其次,编译需要perl,nasm,依次去下载就好了;perl推荐使用Strawberry Perl,下载过ActivePerl,一堆问题,放弃了;
perl地址:
strawberry perl官网:https://strawberryperl.com/
strawberry perl git: https://github.com/StrawberryPerl
nasm:https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/win64/
下载如果有问题,可以私聊我,我给你网盘版本
再次,加入环境变量,在vs2019下使用x64 Native tool command执行以下编译代码:

perl Configure VC-WIN64A
nmake
nmake test
nmake install

执行完后,默认安装到c盘。

注意,要使用管理员权限,否则会提示权限问题,安装失败的。

反思

其实,真的编译是用不了多久的,环境配置好,

相关文章

网友评论

      本文标题:在windows上编译openssl

      本文链接:https://www.haomeiwen.com/subject/dpferltx.html