Welcome! Log In Create A New Profile

Advanced

Re: Compile nginx add openssl

August 20, 2009 07:54AM
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/
Subject Author Posted

Compile nginx add openssl

ronin August 19, 2009 11:10PM

Re: Compile nginx add openssl

Igor Sysoev August 20, 2009 07:54AM

Re: Compile nginx add openssl

ronin August 23, 2009 05:21AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 325
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready