checking for OpenSSL library ... not found
Maxim Dounin
mdounin at mdounin.ru
Tue Dec 17 12:02:53 UTC 2013
Hello!
On Mon, Dec 16, 2013 at 07:12:56PM -0500, Jeffrey Walton wrote:
> <snip>
> 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.
> </snip>
>
> *****
>
> 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"
> --with-cc-opt="-I/usr/local/ssl/include"
> --with-ld-opt="/usr/local/ssl/lib/libcrypto.a
> /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
> (http://mailman.nginx.org/pipermail/nginx/2010-April/019644.html).
>
> 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
directories.
Something like this should work for you:
./configure --with-cc-opt="-I/usr/local/ssl/include" \
--with-ld-opt="-L/usr/local/ssl/lib"
--
Maxim Dounin
http://nginx.org/
More information about the nginx
mailing list