cd openssl-0.9.6g ./config no-threads -fPICApache 1.3 don't use threads (apache2 use it), and OpenSSL compile by default with threads, so we have to desactivate this option with the no-threads argument to ./config. -fPic is important if we are going to use the module mod_ssl as DSO. In some cases we need to select what compiler we want to use, with the command line:
./config no-threads -fPic os/compiler:gccAfter execute the config command, we are going to compile the program:
make make test su (if you aren't root) make installBy default OpenSSL will be installed in the directory /usr/local/ssl. We can select other directory using the following argument with ./config:
./config --prefix=/usr/local --openssldir=/usr/local/openssl