Welcome! Log In Create A New Profile

Advanced

Re: Cannot make nginx-0.8.54 for ssl.h Error 2

February 14, 2011 02:54AM
On Sun, Feb 13, 2011 at 09:23:21PM -0800, Teng Kuowei wrote:
>
> Hi,
>
> I am new for Nginx. I got the source files, use the commands and build them but found the error below. Anyone can help me? Thank you.
>
> debian:~/nginx-0.8.54# ./configure --user=nginxwww --group=nginxwww --prefix=/usr/local/webserver/nginx --with-http_stub_status_module --with-http_ssl_module --with-openssl=/usr/lib/ssl
>
> debian:~/nginx-0.8.54# make && make install
> make -f objs/Makefile
> make[1]: Entering directory `/root/nginx-0.8.54'
> cd /usr/lib/ssl \
> && make clean \
> && ./config --prefix=/usr/lib/ssl/.openssl no-shared no-threads \
> && make \
> && make install LIBDIR=lib
> make[2]: Entering directory `/usr/lib/ssl'
> make[2]: *** No rule to make target `clean'. Stop.
> make[2]: Leaving directory `/usr/lib/ssl'
> make[1]: *** [/usr/lib/ssl/.openssl/include/openssl/ssl.h] Error 2
> make[1]: Leaving directory `/root/nginx-0.8.54'
> make: *** [build] Error 2
>
> debian:~/nginx-0.8.54# openssl version -a
> OpenSSL 0.9.8o 01 Jun 2010
> built on: Mon Dec 6 21:13:15 UTC 2010
> platform: debian-i386-i686/cmov
> options: bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) blowfish(idx)
> compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -march=i686 -Wa,--noexecstack -g -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM
> OPENSSLDIR: "/usr/lib/ssl"

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

I doubt that /usr/lib/ssl contains sources. Try

--with-cc-opt="-I /usr/lib/ssl" --with-ld-opt="-L /usr/lib/ssl"


--
Igor Sysoev
http://sysoev.ru/en/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Cannot make nginx-0.8.54 for ssl.h Error 2

Teng Kuowei February 14, 2011 12:26AM

Re: Cannot make nginx-0.8.54 for ssl.h Error 2

Igor Sysoev February 14, 2011 02:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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