Compile NGINX with Openssl statically
mdounin at mdounin.ru
Mon Nov 25 14:02:57 UTC 2013
On Fri, Nov 22, 2013 at 12:24:44PM -0200, Fabiano Furtado Pessoa Coelho wrote:
> making all in tools...
> make: Entering directory '/tmp/compile/openssl-1.0.1e/tools'
> make: Nothing to be done for 'all'.
> make: Leaving directory '/tmp/compile/openssl-1.0.1e/tools'
> installing man1/asn1parse.1
> installing man1/CA.pl.1
> installing man1/ca.1
> installing man1/ciphers.1
> installing man1/cms.1
> cms.pod around line 457: Expected text after =item, not a number
> cms.pod around line 461: Expected text after =item, not a number
> cms.pod around line 465: Expected text after =item, not a number
> cms.pod around line 470: Expected text after =item, not a number
> cms.pod around line 474: Expected text after =item, not a number
> POD document had syntax errors at /usr/bin/core_perl/pod2man line 71.
> Makefile:639: recipe for target 'install_docs' failed
> make: *** [install_docs] Error 1
> make: Leaving directory '/tmp/compile/openssl-1.0.1e'
> objs/Makefile:1395: recipe for target
> '/tmp/compile/openssl-1.0.1e/.openssl/include/openssl/ssl.h' failed
> make: *** [/tmp/compile/openssl-1.0.1e/.openssl/include/openssl/ssl.h]
> Error 2
> make: Leaving directory '/tmp/compile/nginx-1.4.4'
> Makefile:8: recipe for target 'build' failed
> make: *** [build] Error 2
> What I am doing wrong?
Errors suggest compilation of the OpenSSL library fails as pod2man
on your system (perl 5.18?) doesn't like one of OpenSSL's pod
files. Try looking, e.g., here:
There seems to be a patch for OpenSSL there. Alternatively,
do something like
cd /tmp/compile/openssl-1.0.1e && make install_sw
and then continue building nginx. It should bypass OpenSSL's
documentation processing this way, and nginx should be built
without problems (not tested though).
More information about the nginx