cant find openssl

Maxim Dounin mdounin at
Thu Mar 17 17:39:18 MSK 2011


On Thu, Mar 17, 2011 at 09:51:45AM -0400, c_saunders wrote:

> OS:redhat 5.6
> nginx version=nginx-0.8.54
> getting following error
> checking for OpenSSL library ... not found
> ./configure: error: SSL modules require the OpenSSL library.
> You can either do not enable the modules, or install the OpenSSL library
> into the system, or build the OpenSSL library statically from the source
> with nginx by using --with-openssl=<path> option.
> openssl is installed
> -bash-3.2# which openssl
> /usr/bin/openssl
> openssl-devel is as well
> which lib is it looking forward?

nginx looks for openssl/ssl.h header and libssl and libcrypto 

Use something like

./configure --with-cc-opt="-I /path/to/include" --with-ld-opt="-L /path/to/lib"

if you don't have these available to compiler by default.

Maxim Dounin

More information about the nginx mailing list