Compiled environment operating system: Red Hat Enterprise Linux Server Release 5.4 64-bit Compilation tool: GCC (gcc) 4.1.2 20080704 (Red Hat 4.1.2-46)
1. Download Zlib LibraryAddress: Http://zlib.net/zlib-1.2.7.tar.gz take the zlib-1.2.7.tar.gz package as an example, upload the zlib-1.2.7.tar.gz to the/home directory
2. Compile and install the Zlib library$ cd/home$ tar-zxvf zlib-1.2.7.tar.gz$ cd zlib-1.2.7$./configure--prefix=/usr/local$ make && make install & ;& Make Clean
3. Download OpenSSLAddress: http://www.openssl.org/source/take the openssl-1.0.1c.tar.gz package as an example, upload the openssl-1.0.1c.tar.gz to the/home directory
4. Unzip OpenSSL$ cd/home$ tar-zxvf openssl-1.0.1c.tar.gz$ CD openssl-1.0.1c
5. Compiling and installingCompile $./config enable-shared--prefix=/usr/local/openssl/--openssldir=/usr/local/ssl/zlib$ make && make test && make install cleans up intermediate files at compile time $ make clean
6. UseThe generated OpenSSL libraries libcrypto.a and LIBSSL.A, which are stored in/usr/local/openssl/lib, can be used directly to participate in static compilation
From for notes (Wiz)
Linux under Compile OpenSSL