按要求安装好
ActivePerl, (https://www.activestate.com/ActivePerl)
nasm(可以不装, 要使用参数 no-asm)

命令行下进入Openssl目录执行以下命令

perl configure VC-WIN32 enable-md2 enable-rc5 --prefix="d:\openssl_bin"
perl configure VC-WIN64A enable-md2 enable-rc5 --prefix="d:\openssl_bin"

nmake
nmake test  (执行一些测试代码)
nmake install  将编译好的文件拷贝到 d:\openssl_bin 

如果提示
Can't locate Win32/Console.pm in @INC (you may need to install the Win32::Console module)
用以下命令安装模块
ppm install Win32::Console
默认的下载在新的ActivePerl中可能没有PPM可以用以下方法建立一个新的ActivePerl Build, 同时也可以添加 Win32-Console Win32-OLE 这二个模块

  • First, remove the old installation of ActivePerl (I am not sure if this is necessary though). Double-Click the installer .exe, typically something like: ActivePerl-5.28.1.0000-MSWin32-x64-832ee6ab.exe, then click "Next" and then click "Remove".
  • Now, go to the Active Platform page of the forked perl project: https://platform.activestate.com
  • Click the configuration tab of the project and click "Add packages"
  • Add the package "ActivePerl-PPM", click "Add" and then "Done".
  • Still in the configuration tab, click "Commit changes"
  • From the "Overview" tab, click the download button for the new build.

转载请注明转自: 听风 , 本文固定链接: VS2017 Openssl编译