最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

win10环境编译支持xp的libcurl+openssl踩过的坑

运维笔记admin2浏览0评论

1、编译环境

win10环境,64位,vs2013

2、使用环境

dll方式、兼容xp、32位

3、编译过程

3.1 编译openssl

3.1.1. 使用工具ActivePerl 
http://www.activestate/activeperl/downloads

默认下一步安装就好,安装的最后,需要添加到PATH环境变量中,目的是在cmd.exe能直接运行。

测试是否安装成功,在cmd中,perl -version

C:\Users\Tenpo>perl -version

This is perl 5, version 26, subversion 3 (v5.26.3) built for MSWin32-x64-multi-thread
(with 2 registered patches, see perl -V for more detail)

Copyright 1987-2018, Larry Wall

Binary build 2603 [a95bce075] provided by ActiveState http://www.ActiveState
Built Dec 17 2018 09:46:45

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl/, the Perl Home Page.

如果不能运行,则可能是没有设置环境变量,手动添加至PATH中(右键我的电脑->属性->高级系统设置->高级->环境变量)

3.1.2 下载源码

http://www.openssl/source/ 下载 1.0.2e 这个版本修复了Heartbleed漏洞。(可以使用最新版本,但是否有风险未知)

3.1.3 编译

解压源码目录,cmd中进入到openssl源码路径(我的是D:\3rdpart\https\openssl-1.0.2e)下执行

perl Configure VC-WIN32 no-
发布评论

评论列表(0)

  1. 暂无评论