nginx編譯時pcre會提示找不到libpcre.so.1
./configure --hlep
--without-pcre disable PCRE library usage 不使用pcre
--with-pcre force PCRE library usage 使用默認的pcre庫,默認使用系統自帶的pcre-7.8,可以rpm -ql pcre查看一下
--with-pcre=DIR set path to PCRE library sources 使用自己安裝的pcre,很奇怪的是,自己安裝的pcre的新版本路徑/usr/local,nginx編譯程序會提示非法
--with-pcre-opt=OPTIONS set additional build options for PCRE 不知道什么作用
--with-pcre-jit build PCRE with JIT compilation support 不知道什么作用
目前的解決方法是
1.安裝新版的pcre
2.編譯選項用 --with-pcre
3.ln -s /usr/local/pcre/lib/libpcre.so.1 /lib64/libpcre.so.1