Ubuntu安裝nginx, the HTTP rewrite module requires the PCRE library 的解決方法
解壓nginx-1.9.12.tar.gz後,執行下面的命令安裝
./configure --prefix=/usr/bin/
出現the HTTP rewrite module requires the PCRE library 的錯誤。
解決方法
需要安裝pcre包
sudo apt-get update sudo apt-get install libpcre3 libpcre3-dev
你可能還需要安裝
sudo apt-get install openssl libssl-dev