Welcome! Log In Create A New Profile

Advanced

Compiling nginx with openssl on Debian Lenny

July 23, 2009 03:53AM
Hi,

I'm trying to compile nginx-0.7.61 with openssl on my Debian 5.0 machine without any success.
I have installed all necessary libs using [code]
aptitude install libpcre3 libpcre3-dev libpcrecpp0 zlib1g-dev libssl-dev libgd2-xpm-dev
[/code]

This is my configure line:

[code]
./configure \
--prefix=/usr \
--conf-path=/etc/nginx/nginx.conf \
--sbin-path=/usr/sbin \
--http-log-path=/var/log/nginx/access.log \
--error-log-path=/var/log/nginx/error.log \
--pid-path=/var/run/nginx.pid \
--lock-path=/var/lock/nginx.lock \
--http-client-body-temp-path=/var/lib/nginx/body \
--http-proxy-temp-path=/var/lib/nginx/proxy \
--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi \
--with-ipv6 \
--with-http_ssl_module \
--with-http_realip_module \
--with-http_addition_module \
--with-http_image_filter_module \
--with-http_sub_module \
--with-http_dav_module \
--with-http_flv_module \
--with-http_gzip_static_module \
--with-http_secure_link_module \
--with-http_stub_status_module \
--with-md5-asm \
--with-sha1-asm \
--with-openssl=/usr/include \
--with-sha1=/usr/lib \
--with-zlib-asm=pentiumpro \
--with-cpu-opt=pentium4
[/code]

Everything goes smoothly and I get:

[code]
Configuration summary
+ using system PCRE library
+ using OpenSSL library: /usr/include
+ md5: using OpenSSL library
+ using sha1 library: /usr/lib
+ using system zlib library

nginx path prefix: "/usr"
nginx binary file: "/usr/sbin"
nginx configuration prefix: "/etc/nginx"
nginx configuration file: "/etc/nginx/nginx.conf"
nginx pid file: "/var/run/nginx.pid"
nginx error log file: "/var/log/nginx/error.log"
nginx http access log file: "/var/log/nginx/access.log"
nginx http client request body temporary files: "/var/lib/nginx/body"
nginx http proxy temporary files: "/var/lib/nginx/proxy"
nginx http fastcgi temporary files: "/var/tmp/nginx/fastcgi"
[/code]

[b]BUT[/b], when I run [code]make[/code] I get:

[code]
make -f objs/Makefile
make[1]: Entering directory `/home/mrginx/Desktop/nginx-0.7.61'
cd /usr/include \
&& make clean \
&& ./config --prefix=/usr/include/openssl no-shared no-threads \
&& make \
&& make install
make[2]: Entering directory `/usr/include'
make[2]: *** No rule to make target `clean'. Stop.
make[2]: Leaving directory `/usr/include'
make[1]: *** [/usr/include/openssl/include/openssl/ssl.h] Error 2
make[1]: Leaving directory `/home/mrginx/Desktop/nginx-0.7.61'
make: *** [build] Error 2
[/code]

ssl.h is located in /usr/include/openssl/ssl.h. If I skip the --with-openssl line in configure the make works flawlessly.

[b]help??[/b]



Edited 2 time(s). Last edit at 07/23/2009 03:59AM by mrginx.
Subject Author Posted

Compiling nginx with openssl on Debian Lenny

mrginx July 23, 2009 03:53AM

Re: Compiling nginx with openssl on Debian Lenny

Igor Sysoev July 23, 2009 03:55AM

Re: Compiling nginx with openssl on Debian Lenny

mrginx July 23, 2009 04:30AM

Re: Compiling nginx with openssl on Debian Lenny

Igor Sysoev July 23, 2009 04:34AM

Re: Compiling nginx with openssl on Debian Lenny

Nuno Magalhães July 23, 2009 05:57AM

Anyone with experience installing Nginx in a Vyatta firewall box (Debian 4.2.3-2)

Tom Keyser July 24, 2009 06:51PM

Re: Anyone with experience installing Nginx in a Vyatta firewall box (Debian 4.2.3-2)

mike July 24, 2009 07:01PM

Re: Anyone with experience installing Nginx in a Vyatta firewall box (Debian 4.2.3-2)

Michal Kowalski July 24, 2009 11:19PM

Ngix not picking up the index file.... after upgrade

Shri @ DevLib.Org July 25, 2009 02:35AM

Re: Ngix not picking up the index file.... after upgrade

Igor Sysoev July 25, 2009 03:06AM

Re: Ngix not picking up the index file.... after upgrade

Shri @ DevLib.Org July 25, 2009 03:34AM

Re: Ngix not picking up the index file.... after upgrade

Shri @ DevLib.Org July 25, 2009 04:06AM

debian package for version > 0.6.32

Tom Keyser July 25, 2009 04:50AM

Re: debian package for version > 0.6.32

Olivier B. July 25, 2009 05:36AM

Re: debian package for version > 0.6.32

Tom Keyser July 25, 2009 06:21AM

Re: debian package for version > 0.6.32

Tom Keyser July 25, 2009 07:25AM

Re: debian package for version > 0.6.32

Olivier B. July 25, 2009 07:56AM

Re: debian package for version > 0.6.32

merlin corey July 25, 2009 08:04AM

Re: Anyone with experience installing Nginx in a Vyatta firewall box (Debian 4.2.3-2)

Tom Keyser July 25, 2009 02:48AM

Re: Anyone with experience installing Nginx in a Vyatta firewall box (Debian 4.2.3-2)

Michal Kowalski July 25, 2009 08:43AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 258
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