Configuring OpenSSL under Win7

Source: Internet
Author: User
Tags install openssl visual studio 2010

Recently just installed OpenSSL, encountered a lot of problems, so recorded down:

My PC environment is: System win7,32 bit, Microsoft Visual Studio 2010;

Start the installation below:

1, pre-Installation preparation: First download to http://www.openssl.org/source/ Download the latest version of openssl-1.0.1c.tar.gz . Unzip to C:\openssl-1.0.1c, under Openssl-1.0.1c's directory,
You will see two files, Install.w32 and Install.w64, which are installed under 32-bit and 64-bit, which can be used as a reference for installation, but in English.
http://www.activestate.com/ActivePerl Download ActivePerl, click Install to C drive, and then execute the example.pl under directory C:\Perl64\eg on the command line,
If the results show "Hello from activeperl!", then the Perl installation is successful, you can start to use the relevant Perl commands to install OpenSSL, the preparation is done. Start the installation below:
3, run "cmd", cd change directory to openssl-1.0.1c source directory,
Execute "perl Configure vc-win32 no-asm-dopenssl_use_ipv6=0" no-asm means no NASM compilation, dopenssl_use_ipv6=0 disable IPV6, avoid nmake:fatal Error U1077: ' CL ':
Return code ' 0x2 ' error; Here's why Vc-win32, not 64, I think it should be our IDE vc6.0 is 32.

4. Input: Ms\do_ms

5, to the directory C:\Program Files (x86) \microsoft Visual Studio\vc98\bin (under the root of vc6.0) execution Vcvars32.bat

6, then return to C:\openssl-1.0.1c execution nmake-f Ms\ntdll.mak; see, you can be happy. The installation was successful.

Check for Success, execute command: "nmake-f ms\ntdll.mak test". or "> CD Out32dll

>.. \ms\test "Test.

After installation, the generated header files are placed in the INC32 directory, the dynamic/static libraries, and the executable files in the Outdll directory. View C:\OPENSSL-0.9.8.E contains three folders bin, include, Lib. The bin includes openssl.exe (OpenSSL instruction program), Ssleay32.dll (SSL protocol Dynamic Library), Libeay32.dll (cipher algorithm library). Lib includes the Libeay32.lib,ssleay32.lib. The Include directory includes the header files of the OpenSSL development design.

Problems encountered:

1. "NMAKE is not an internal or external command or a. bat file" appears

Workaround: Nmake.exe file, this file should be located in C:\Program Files\Microsoft Visual Studio\vc98\bin Directory, configure environment variables. Action: Right-click My Computer--Properties--advanced--environment variables-System variables (find path)--edit, C:\Program Files\Microsoft Visual Studio\vc98\ Bin added to the end (note the previous path with ";" Separated, and with ";" The end is to remind you that you must restart the machine before the new path will take effect;

2, at this time to solve the problem, re-execute the command "nmake-f Ms\ntdll.mak" found pop-up warning box, titled Cl.exe hint Missing Mspdb60.dll.

Resolve the missing Mspdb60.dll issue by copying the Mspdb60.dll file under directory \common\msdev98\bin to C:\Program Files\Microsoft Visual Studio\vc98\bin, VC6.0 can be run normally.

3, at this time think problem resolution, rerun "Nmake-f ms\ntdll.mak" command, found that there is a problem,

"Ms\uplink.c (one): Fatal error C1083:cannot open include file: ' windows.h ': No such file or directory Nmake:fatal error U1077: ' CL ': Return code ' 0x2 ' Stop. Wrong time '

Workaround: Run the VCVARS32 command first, vcvars32.bat the environment variable used to set the VC command-line compilation.

Rerun the "nmake-f Ms\ntdll.mak" command and you are done. Implementation through

4 If the Prel installation error, the reason may be in the environment variable is not added C:\Perl64\bin; C:\Perl64\site\bin; just add it up. Specifically how to add environment variables do not say.

5. If the problem arises

6. If the Waring:can ' t open config file:/usr/local/ssl/openssl.cnf appears when opening, only the set Openssl_conf=c:\ installation directory \openssl.cfg is required.

7. If this problem arises,

8.1>link:fatal Error LNK1123: Failed during transition to COFF: invalid or corrupt file

My Computer installed VS2010, recently updated the system, patched some patches, the result of this error. Search in the computer found
C:\Program Files\Microsoft Visual Studio 10.0\vc\bin
C:\Windows\winsxs\x86_netfx-cvtres_for_vc_and_vb_b03f5f7f11d50a3a_6.1.7600.16385_none_ba476986f05abc65
C:\Windows\Microsoft.NET\Framework\v4.0.30319

There are cvtres.exe files in all three paths, so I try to replace the first path file with the file in the second path, and solve the problem.

According to the above practice, this problem should not occur, I do not know how to solve. Also look for guidance, as for other questions, look for more guidance, attach a few links:

Configuring OpenSSL under Win7

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.