Compile nginx add openssl

ronin nginx-forum at nginx.us
Thu Aug 20 07:10:50 MSD 2009


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?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,5018,5018#msg-5018






More information about the nginx mailing list