http://www.laruence.com/manual/yaf.install.html#yaf.installation.linux
./configure的時候正常
到了make這一步的時候會出現
/usr/include/php/ext/pcre/php_pcre.h:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token /usr/include/php/ext/pcre/php_pcre.h:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token /usr/include/php/ext/pcre/php_pcre.h:52: error: expected specifier-qualifier-list before 'pcre',這樣的問題,我在網上找了下沒找到答案,但看到有相似的問題,是說安裝apc擴展出錯的,大致原因是缺少了pcre,安裝一下這個包就可以了我就試了試果然通過了,安裝命令 centos or ubuntu兩種:yum install pcre-devel or apt-get install libpcre3-dev