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.