ubuntu安装pcre
sudo apt-get install libpcre3-dev
编译nginx
./configure --prefix=/usr/local/server/nginx --with-cc-opt="-I /usr/include/pcre -I /usr/include/openssl" --with-debug --with-http_stub_status_module --with-http_ssl_module
出现
./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= option
只好使用
./configure --prefix=/usr/local/server/nginx --with-cc-opt="-I /usr/include/pcre" --with-debug --with-http_stub_status_module --with-http_ssl_module --with-http_realip_module --with-http_ssl_module --with-http_perl_module --with-http_stub_status_module --with-openssl=/software/openssl-1.0.2
阅读(4808) | 评论(0) | 转发(0) |