转载:http://www.bubuko.com/infodetail-1753937.html
错误信息:
checking for OS
- Linux 3.10.0-327.el7.x86_64 x86_64
checking for C compiler … not found
./configure: error: C compiler cc is not found
解决方法:安装gcc
yum -y install gcc
错误信息:
./configure: error: the HTTP rewrite module requires the PCRE library.
解决方法:安装pcre-devel
yum install pcre-devel
错误信息:
./configure: error: the HTTP gzip module requires the zlib library.
解决方法:安装zlib-devel
yum install zlib-devel
解决完以上问题,再次执行
./configure --prefix=/usr/local/nginx
OK,现在可以执行make 了