Centos6.5编译安装nginx时出现的问题

来源:互联网 发布:java 变量类型 编辑:程序博客网 时间:2024/06/16 01:03

问题1

出现以下的错误
./configure: error: C compiler cc is not found
解决方法:

yum install gcc

问题二

安装Nginx时报错

./configure: error: the HTTP rewrite module requires the PCRE library.

安装pcre-devel解决问题

yum -y install pcre-devel

错误提示:./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= options.

解决办法:

yum -y install openssl openssl-devel
0 0
原创粉丝点击