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