Configure can't find SSL library

WilliamOMS nginx-forum at
Tue Aug 3 22:23:34 MSD 2010


I'm installing Nginx 0.8.40 on Solaris 10 with SSL module enabled. But
configure command (./configure --prefix=/export/home/tomcat/nginx
--with-http_ssl_module) failed with following messages in autoconf.err.

checking for OpenSSL library

objs/autotest.c:4:25: openssl/ssl.h: No such file or directory


int main() {
    return 0;

gcc -D_FILE_OFFSET_BITS=64 -lsocket -lnsl -o objs/autotest
objs/autotest.c -lssl -lcrypto 

I have installed openSSL and is available on the PATH. 
OpenSSL> version
OpenSSL 0.9.7d 17 Mar 2004

Do I need to specify some kind environment variable for SSL library?
What's the default path Nginx will look for OpenSSL library?


Posted at Nginx Forum:,116221,116221#msg-116221

More information about the nginx mailing list