Compiling nginx with openssl on Debian Lenny

mrginx nginx-forum at nginx.us
Thu Jul 23 11:53:44 MSD 2009


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


help??

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






More information about the nginx mailing list