Compile nginx add openssl

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 toSSL_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

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

ldconfig -v
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

use command:
echo /usr/lib/openssl/engines >>/etc/ld.so.conf
ldconfig -v

Compile nginx is right

Thanks Igor S.

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs