Install OpenSSL in Perl

Source: Internet
Author: User

This article only implements compilation, and calling WCF is not successful yet (the server digital certificate is called without authentication !)

1: Install ActivePerl (latest ActivePerl-5.12.2.1203)

Http://www.activestate.com/activeperl/downloads/

2: Install OpenSSL

Http://www.openssl.org/source/ (it is recommended to install a stable openssl-0.9.8r, the latest version is the openssl-1.0.0d, and the previous openssl-1.0.0c is not stable)

3: MASM 8.0

OpenSSL 8.0 compilation is not prone to errors

Http://www.microsoft.com/downloads/details.aspx? Familyid = 7a1c9da0-0510-44a2-b042-7ef370530c64 & displaylang = en

Nmake: Fatal error u1077: 'ml': return code '0x1'

Use winrarto decompress masmsetup.exe. The following code is displayed: setup.exe.

Run winrarto decompress setup.exe. The following code is displayed: vc_masm1.cab.

Continue to decompress vc_masm1.cab with winrarto get: fl_ml_exe _... (very long file name, save a few minutes, rename this file as ml.exe

The tested ml.exe should show: Microsoft (r) macro triggerversion 8.00.50727.104

Copy ml.exe to the working directory and perl directory.

Installation:

1. Run the "cmd" command, enter the MS-DOS, and check whether Perl is properly installed under the EG folder of the Perl installation directory:

Cd c: \ Perl \ Eg

Run Perl example. pl in this directory.

If "hellofrom ActivePerl!" is displayed !", The installation of Perl is successful. You can start to install OpenSSL using Perl commands.

2. initialize the VC ++ 6.0 environment variable

Find \ vc98 \ bin \ In the installation directory of VC ++ 6.0 and execute the following command:

Cd c: \ Program Files \ microsoft visualstudio \ vc98 \ bin

Vcvars32.bat

3. Install OpenSSL (you need to enter the directory where OpenSSL is located)

Execute the configure command (configure the compilation parameters and configure the compiling environment ):

Perl configure VC-WIN32

4. RunMs \ do_ms orMS/do_ms Command

5. Compile

Nmake-F Ms \ NTDLL. Mak

6. Test

Nmake-F Ms \ NTDLL. Mak TestIf the above prompt ("passed alltests") appears, it indicates that the request is successful.

If the compilation is successful, the final output results are all in the out32dll Directory: including executable files, two DLL files, and two lib files: libeay32.dll, libeay32.lib, ssleay32.dll, ssleay32.lib, and openssl.exe; put them in a directory corresponding to the path environment variable.

Related Article

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.