Compile nginx add openssl

Igor Sysoev is at rambler-co.ru
Thu Aug 20 15:54:22 MSD 2009


On Wed, Aug 19, 2009 at 11:10:50PM -0400, ronin wrote:

> system:centos 5.3
> yum -y install openssl openssl-devel
> ./configure --user=webuser --group=webuser --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-md5=/usr/lib --with-sha1=/usr/lib --with-http_gzip_static_module
> Compile nginx 0.8.9 is right
> 
> use openssl Version update to 0.98K 
> tar zxvf openssl*
> cd openssl*
> ./config  --prefix=/usr shared
> make && make install
> ldconfig -v
> cd ../
> cd nginx*
> ./configure --user=webuser --group=webuser --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-md5=/usr/lib --with-sha1=/usr/lib --with-http_gzip_static_module
> Compile nginx 0.8.9 or 0.8.4 0.7.61 is error!
> error info:
> objs/src/http/ngx_http_request.o: In function `ngx_http_ssl_servername':
> ngx_http_request.c:(.text+0xba7): undefined reference to `SSL_get_servername'
> ngx_http_request.c:(.text+0xc5b): undefined reference to `SSL_set_SSL_CTX'
> collect2: ld return 1
> make[1]: ***  error 1
> make[1]: Leaving directory `/web/scr/nginx-0.8.4'
> make: ***  error 2 
> 
> How do I?

You need to remove manually installed OpenSSL, then install OpenSSL package
again.

Then do the following:

tar zxvf openssl-0.9.8k.tar.gz
tar zxvf nginx-0.8.9.tar.gz
cd nginx-0.8.9
./configure --user=webuser --group=webuser --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-http_gzip_static_module --with-openssl=../openssl-0.9.8k
make


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list