checking for OpenSSL library ... not found
mdounin at mdounin.ru
Tue Dec 17 12:02:53 UTC 2013
On Mon, Dec 16, 2013 at 07:12:56PM -0500, Jeffrey Walton wrote:
> checking for OpenSSL library ... not found
> ./auto/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.
> I believe OpenSSL is present (I just built it from sources):
> $ ls /usr/local/ssl/
> bin certs include lib man misc openssl.cnf private
> $ ls /usr/local/ssl/lib/
> engines libcrypto.a libssl.a pkgconfig
> Here was my configure. $THIS_USER and $THIS_GROUP was set properly to
> my login and group.
> ./auto/configure --with-debug --with-http_ssl_module
> --prefix="$THIS_DIR/ac" --http-proxy-temp-path="$THIS_DIR/ac/temp"
> --user="$THIS_USER" --group="$THIS_GROUP"
> /usr/local/ssl/lib/libssl.a /usr/local/ssl/lib/libcrypto.a
> I believe --with-cc-opt and --with-ld-opt is the preferred (required?)
> way to do things for local/custom OpenSSL
> Does anything look out of place?
You are trying to explicitly specify library files to be loaded on
all ld invocations. This is wrong. Instead, you should specify a
_path_ to load libraries from, much like you did with include
Something like this should work for you:
./configure --with-cc-opt="-I/usr/local/ssl/include" \
More information about the nginx