报错1:
./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.
解决办法:
yum -y install openssl openssl-devel
报错2:
./configure: error: the HTTP rewrite module requires the PCRE library
解决办法:
yum -y install openssl pcre-devel
报错3:
checking for OS
- Linux 2.6.32-696.el6.x86_64 x86_64
checking for C compiler ... not found
./configure: error: C compiler cc is not found
解决办法
yum -y install gcc gcc-c++ autoconf automake make
转载于:https://blog.51cto.com/13131218/2059057