Welcome! Log In Create A New Profile

Advanced

Re: Compiling nginx with openssl on Debian Lenny

July 23, 2009 03:55AM
On Thu, Jul 23, 2009 at 03:53:44AM -0400, mrginx wrote:

> 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
> aptitude install libpcre3 libpcre3-dev libpcrecpp0 zlib1g-dev libssl-dev libgd2-xpm-dev
>
>
> This is my configure line:
>
>
> ./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
>
>
> Everything goes smoothly and I get:
>
>
> 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"
>
>
> BUT, when I run make I get:
>
>
> make -f objs/Makefile
> make[1]: Entering directory `/home/jayzee/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]: *** Error 2
> make[1]: Leaving directory `/home/jayzee/Desktop/nginx-0.7.61'
> make: *** Error 2

./configure --help | grep with-openssl=
--with-openssl=DIR set path to OpenSSL library sources

I doubt that you have OpenSSL sources in /usr/include.
The same story with --with-sha1=/usr/lib

You just need to omit
--with-md5-asm \
--with-sha1-asm \
--with-openssl=/usr/include \
--with-sha1=/usr/lib \
--with-zlib-asm=pentiumpro \


--
Igor Sysoev
http://sysoev.ru/en/
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: 120
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready