checking for OpenSSL library ... not found

Maxim Dounin mdounin at mdounin.ru
Tue Dec 17 13:01:47 UTC 2013


Hello!

On Tue, Dec 17, 2013 at 07:17:47AM -0500, Jeffrey Walton wrote:

> On Tue, Dec 17, 2013 at 7:02 AM, Maxim Dounin <mdounin at mdounin.ru> wrote:
> > 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"
> Thanks Maxim. This did not work, and its the reason I moved to envars
> to fully specify everything.
> 
> *****
> 
> $ auto/configure --with-cc-opt="-I/usr/local/ssl/include"
> --with-ld-opt="-L/usr/local/ssl/lib -ldl"
> checking for OS
>  + Linux 3.11.10-200.fc19.x86_64 x86_64
> checking for C compiler ... found
>  + using GNU C compiler
> ...
> 
> Configuration summary
>   + using system PCRE library
>   + OpenSSL library is not used
>   + md5: using system crypto library
>   + sha1: using system crypto library
>   + using system zlib library
> 
> *****
> 
> $ auto/configure --with-cc-opt="-I/usr/local/ssl/include"
> --with-ld-opt="-L/usr/local/ssl/lib -ldl /usr/local/ssl/lib/libssla.
> /usr/local/ssl/lib/libcrypto.a"
> checking for OS
>  + Linux 3.11.10-200.fc19.x86_64 x86_64
> ...
> 
> checking for --with-ld-opt="-L/usr/local/ssl/lib -ldl
> /usr/local/ssl/lib/libssla. /usr/local/ssl/lib/libcrypto.a" ... not
> found
> auto/configure: error: the invalid value in
> --with-ld-opt="-L/usr/local/ssl/lib -ldl /usr/local/ssl/lib/libssla.
> /usr/local/ssl/lib/libcrypto.a"
> 
> *****
> 
> Any thoughts on how to proceed?

First of all, try fixing typo in your configure arguments.  If it 
doesn't help, try looking into objs/autoconf.err.

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx mailing list