OpenSSL Windows x64 编译错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2753960/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 14:23:53  来源:igfitidea点击:

OpenSSL Windows x64 Compilation error

windows64-bitcompilationopenssl

提问by rkellerm

I'm getting the following error when trying to compile OpenSSL 1.0, 64 bit:

尝试编译 64 位 OpenSSL 1.0 时出现以下错误:

    ias -o tmp32\ia64cpuid.obj tmp32\ia64cpuid.asm
'ias' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'ias' : return code '0x1'
Stop.

Does someone know what can I do? (I do it on Windows 2008 x64 OS)

有人知道我能做什么吗?(我在 Windows 2008 x64 操作系统上这样做)

Thanks.

谢谢。

采纳答案by rkellerm

For the former problem - I just added to the Path environment variable the path of ias: C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\x86_ia64.

对于前一个问题 - 我只是在 Path 环境变量中添加了 ias 的路径:C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\x86_ia64。

But after all I compiled it for x64 (VC-WIN64A) with NASM and it worked.

但毕竟我用 NASM 为 x64 (VC-WIN64A) 编译了它并且它有效。

Thanks.

谢谢。

回答by Maxim Masiutin

You've probably chosen VC-WIN64I (as an argument for the perl Configurecommand), which is a wrong platform in your case. You should have passed VC-WIN64A. "I" stands for "Itanium" and "A" still stands "AMD64".

您可能选择了 VC-WIN64I(作为perl Configure命令的参数),在您的情况下这是一个错误的平台。您应该已经通过了 VC-WIN64A。“I”代表“Itanium”,“A”仍然代表“AMD64”。

Run

perl Configure VC-WIN64A

and then run "nmake" again, it should work this time.

然后再次运行“nmake”,这次应该可以工作了。

回答by bignum

I normally get my OpenSSL windows builds from here. The guy who runs the site has the 64 bit version built so may be able to help if you email him. He's also looking for beta testers I think.

我通常从这里获取我的 OpenSSL Windows 版本。运行该站点的人构建了 64 位版本,因此如果您给他发送电子邮件,他可能会提供帮助。我认为他也在寻找 Beta 测试人员。

回答by user1587804

Forget all that building - its a nightmare! Someone has done all the hardwork for Win7 64 and kindly put it here

忘记所有的建筑——这是一场噩梦!有人为Win7 64做了所有的努力,请把它放在这里

https://code.google.com/p/openssl-for-windows/downloads/detail?name=openssl-0.9.8k_X64.zip&can=2&q=

https://code.google.com/p/openssl-for-windows/downloads/detail?name=openssl-0.9.8k_X64.zip&can=2&q=