您的位置:首页 > 运维架构 > Nginx

手动编译安装nginx

2015-08-15 09:56 656 查看
出现checking for PCRE library … not found、./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= option.

你需要安装

sudo apt-get install libpcre3 libpcre3-dev

sudo apt-get install openssl libssl-dev


注意安装pcre与ssl library时的library的名字是否对,在ubuntu中是上面的。而需要用yum安装时

yum  -y install pcre-devel
yum  -y install openssl openssl-deb
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: