OpenSSL installation on Win32 platform

Source: Internet
Author: User

Please indicate the source of the post: http://blog.csdn.net/sunyujia/

I think it is not very nice for Unix people to have a preference. They always like to provide source code directly, so that users can compile it on their own. It is annoying. I just want to use it at will and compile the environment on their own, it's troublesome.

When I installed OpenSSL, another computer in the house broke down, which affected my mood and the installation was not smooth. Baidu read many articles, which are similar.

It is mainly because some errors and warnings in the middle do not know what they mean. Remember the installation process.

OpenSSL 0.9.8i address: http://www.openssl.org/source/openssl-0.9.8i.tar.gz

ActivePerl 5.8.822 http://downloads.activestate.com/ActivePerl/Windows/5.8/ActivePerl-5.8.8.822-MSWin32-x86-280952.msi

The compiler vs2005 does not support machine installation.

You can also install vc6.0. It seems that only the C ++ compiler is the same, but today I install and use vs2005.

Installation steps:

1. Install VC and ActivePerl in sequence. During installation, check the option to add environment variables.

2. Decompress OpenSSL. After decompression, you will find many files under the openssl-0.9.8i directory.

One of the files is install. w32 is opened in notepad or another text editor. This file introduces the installation method of the Win32 platform. The following batch processing is also based on this file. You 'd better install it based on the description of this file, if your version is the same as your version, you can use the following batch to install it.

Create a batch install. bat under the same directory of Install. w32. The content is as follows:

  1. @ Rem -- prefix specifies the installation directory
  2. Perl configure VC-WIN32 -- prefix = D:/syj. Work/syj. ENV/OpenSSL
  3. Pause
  4. Call MS/do_ms
  5. Pause
  6. Nmake-f ms/NTDLL. Mak
  7. Pause
  8. Nmake-f ms/NTDLL. Mak Test
  9. Pause
  10. Nmake-f ms/NTDLL. Mak install
  11. Pause

Do not execute it because the VC environment variable is required, we recommend that you go to the Start Menu-Program-Microsoft Visual Studio 2005-Visual Studio Tools-Visual Studio 2005 command prompt-Enter cmd and go to the openssl-0.9.8i directory through CD, then execute batch processing under this cmd. install. BAT.

Note:

1. The installation takes a long time. Please wait.

2. Pause pause is used in each step for easy observation. After each step is completed, press any key to continue. Be sure to report any error.

3. you can enter cmd without the command of Visual Studio 2005, but you must ensure that there are VC environment variables in cmd. You can manually call vcvars32.bat to set environment variables in the VC directory, you can find this file in the installation directory of VC. The location of the file VC of different versions is different, so I will not describe its location. The simplest way to test whether a VC environment exists is to execute Cl under cmd before executing install. bat. If there is no VC environment, a message will be reported.

'Cl' is not an internal or external command or a program that can be run.

4. Ignore the error "% osversion % is not defined ".

5. Search for the ntdll. Mak file under the MS directory under the OpenSSL directory before installation, and remove the/wx option of the cflag,

Otherwise, the CL compiler reports that the read in the./crypto/DES/enc_read.c file is the POSIX name for this item is deprecated. We recommend that you use _ read.

Because I use a very simple function, I didn't modify it. If you need it, you can try it.

6. At the end of the final compilation, three subdirectories are generated under the specified installation directory: Bin, include, and Lib.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.