在Windows 7 32位上安装OpenSSL [英] Installing OpenSSL on Windows 7 32bit

查看:251
本文介绍了在Windows 7 32位上安装OpenSSL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以列出一套完整的步骤来在Windows 7上安装OpenSSL?我试过很多东西,但总是,一个或其他图书馆被发现失踪。我知道OpenSSL依赖于libxml2,pthread库等等。我已经尝试从各种来源下载它们,但我有点沮丧,许多错误,一个接一个地显示。

解决方案

下载最新版本OpenSSL来源发布(目前为 openssl-1.0.1c.tar.gz ),而不是FIPS模块(请阅读此处),然后按照在源分发根目录中的 INSTALL.W32 INSTALL.W64 文件中的简单步骤。这是微不足道的。您需要的是一个支持的VC ++版本和Perl( Strawberry Perl 对我很好),您可以选择在几个地方使用 NASM 优化代码。



取决于您是否使用NASM,它将是(无):

  perl配置VC-WIN32 no-asm --prefix = d:/ openssl 

或(使用NASM):


$ b b

  perl配置VC-WIN32 --prefix = d:/ openssl 

后接:

  ms\do_ms 

,然后在从源分发版的根文件夹中为配置的环境启动VC ++命令行(Visual Studio XXXX命令提示符)之后:

  nmake -f ms\\\
tdll.mak

然后:

  nmake -f ms\\\\\\\\\\\\\\\\\\\\\\\\\ code> 

如果出现clean(通过所有测试):

  nmake -f ms\\\
tdll.mak安装。

我刚刚跑了这个步骤,它的工作完美无瑕OpenSSL(1.0.1c)下的Visual Studio 2005.现在重新尝试与2010现在。



编辑: 请考虑 INSTALL.W64中的注释。

还请注意:FIPS模块补充OpenSSL发布版本。您在构建FIPS模块时实际上并不编译OpenSSL!


Can anyone list a set of complete steps to install OpenSSL on Windows 7? I have tried a lot of things, but invariably, one or the other library is found missing. I know that OpenSSL depends on libxml2, pthread libraries and so on. I have tried downloading them from various sources, but I am a bit frustrated by a lot of errors that are showing up one after the other. If someone has done it before, it would be great if you can help me with the list of steps.

解决方案

Download the latest OpenSSL source distribution (at the moment openssl-1.0.1c.tar.gz), not the FIPS module (read here), then follow the simple steps in the INSTALL.W32 or INSTALL.W64 file in the root of the source distribution. It's trivial. What you need is one of the supported VC++ versions and Perl (Strawberry Perl works fine for me) and you may opt in to using NASM for optimized code in a few places.

Depending on whether you use NASM it will be (without):

perl Configure VC-WIN32 no-asm --prefix=d:/openssl

or (with NASM):

perl Configure VC-WIN32 --prefix=d:/openssl

followed by:

ms\do_ms

and then after starting the VC++ command line ("Visual Studio XXXX Command Prompt") for the configured environment do from the root folder of the source distribution:

nmake -f ms\ntdll.mak

then:

nmake -f ms\ntdll.mak test

and if that comes out clean ("passed all tests"):

nmake -f ms\ntdll.mak install.

I just ran it up this this step and it works flawlessly (as usual!) for the latest released OpenSSL (1.0.1c) under Visual Studio 2005. Re-trying with 2010 now.

Edit: just tried under the "Visual Studio Command Prompt (2010)" and it works as well here.

Note: consider the remarks in the INSTALL.W64 ("Caveat lector").

Also note: the FIPS module complements the OpenSSL distribution. You aren't actually compiling OpenSSL itself when you build the FIPS module!

这篇关于在Windows 7 32位上安装OpenSSL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆