Compiling nginx with openssl on Debian Lenny

Igor Sysoev is at rambler-co.ru
Thu Jul 23 11:55:26 MSD 2009


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/





More information about the nginx mailing list