博客主机
A-A+

编译nginx的常见错误

2017年08月24日 操作系统, 网站维护 暂无评论 阅读 0 views 次
博客主机

a) PCRE library

./configure: error: the HTTP rewrite module requires the PCRE library. You can either disable the module by using –without-http_rewrite_module option, or install the PCRE library into the system, or build the PCRE library statically from the source with nginx by using –with-pcre=<path> option.

apt-get install libpcre3 libpcre3-dev

b) C++ Compiler

configure: error: You need a C++ compiler for C++ support.

apt-get install build-essential

c) OpenSSL

./configure: error: the HTTP cache module requires md5 functions from OpenSSL library.  You can either disable the module by using –without-http-cache option, or install the OpenSSL library into the system, or build the OpenSSL library statically from the source with nginx by using –with-http_ssl_module –with-openssl=<path> options.

./configure: error: SSL modules require the OpenSSL library. You can either do not enable the modules, or install the OpenSSL library into the system, or build the OpenSSL library statically from the source with nginx by using –with-openssl=<path> option.

sudo apt-get install openssl libssl-dev libperl-dev

d) Xml xslt

./configure: error: the HTTP XSLT module requires the libxml2/libxslt libraries. You can either do not enable the module or install the libraries.

apt-get install libxslt-dev

e) GD Library

./configure: error: the HTTP image filter module requires the GD library. You can either do not enable the module or install the libraries.

apt-get install libgd-dev

f) GeoIP Library

./configure: error: the GeoIP module requires the GeoIP library. You can either do not enable the module or install the library.

apt-get install libgeoip-dev

标签:
博客主机

给我留言

Time limit is exhausted. Please reload CAPTCHA.