(Author: DragonKing Mail: wzhah@263.net Posted: http: //gdwzh.126.com of openssl professional forum)
A few days ago, in order to provide the new version of OpenSSL, I re-made OpenSSL compilation work, and compared several compile methods, write this article brief introduction, I hope to help everyone. The version I compiled is 0.9.6h, the compiler uses VC 6.0, according to its description, I have the following commands and operations: 1. Install ActivePerl-5.6.1.629-mswin32-x86-multi-thread. Successfully pass ! 2. Open the console program, perform the Perl Configure VC-Win32 command in the directory after OpenSSL decompression, pay attention to execute the command in this directory, otherwise you can't find the configure file, of course, you can also specify the full configure file path. successfully passed. 3. According to the help description of the OpenSSL, execute the MS / DO_MASM (and MS_ / DO_MS) command in the decompression directory, successfully passed. 4. Configure the VC environment variable, I transfer to the VC98 / bin directory in the Directory where the VC is located, execute the vcvars32 batch command, set the VC environment variable, and then go to the root directory of the OpenSSL decompression package . Note: When I first run Vcvars32, an error is: Out of Environment Space, this error is generated because your MS-DOS environment variable does not assign enough memory, which can be solved by following: a. Click Start, click to run. B. Enter Sysedit Enter the carriage return to run the program. C. Then there will be multiple windows, select the config.sys window. D. If there is a shell = statement, enter the REM, ie, comment this statement E. If the statement does not exist, enter the shell = c: /command.com / e: 4096 / p, pay attention to ensuring that the statement is input from the first line of the first position. F. Save, exit the restart of the computer should be able to solve this problem. After the above method solves this problem, you can directly execute step 4 after restarting the computer. 5. Perform nmake -f ms / ntdll.mak in the OpenSSL decompression directory. If there is no error, it is completed. The output file is in Out32DLL, including executable files, two lib files, and two DLL files. I have done two unless compilars according to OpenSSL, and I have been adding ASM assembly language compiler. I have not, that is, executing DO_MASM or Do_MS command during the third step, time in the former 3 minutes (I The computer configuration is Tucamed Plus 1.2, memory 256sdrm), the latter is about 6 minutes. Then I used a third party to provide a compilation method. The method automatically configures the V virtual C engineering connection configuration item for the OpenSSL of the OpenSSL, and then compiles, the speed is slow, and the time for at least 20 minutes, but the benefits It is a relatively clear that a project can be made. I don't say it. You can see the relevant documentation.