nginx编译报错
@ 归零 | 星期一,三月 24 日,2014 年 | 1 分钟阅读 | 更新于 星期一,三月 24 日,2014 年

在ubuntu(32bit)上安装nginx执行configure时遇到错误如下:

./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=<path> option.

貌似缺少pcre库,在网上搜了,说是需要安装pcre-devel,可是ubuntu上安装是找不到pcre-devel。 可能是名字变了,后来终于找到解决办法,需要安装 libpcre3 libpcre3-dev:

# sudo apt-get install libpcre3 libpcre3-dev

© 2014 - 2022 Lionel's Blog

Powered by Hugo with theme Dream.