在安裝 pcre-8.1.0 的時候,make 出現錯誤提示:
g++: command not found
通過yum 安裝 gcc gcc-c++
再次編譯,提示如下:
link: See the libtool documentation for more information
make[1]: *** [libpcrecpp.la] 錯誤 1
make[1]: Leaving directory `/usr/app/pcre-8.10'
解決方法:
./configure --disable-shared --with-pic
make && make install
問題解決
本文轉自 菜鳥的征程 51CTO部落格,原文連結:http://blog.51cto.com/songqinglong/1718242