php安装yaf扩展时报错:

/usr/include/php/ext/pcre/php_pcre.h:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/include/php/ext/pcre/php_pcre.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/include/php/ext/pcre/php_pcre.h:44: error: expected specifier-qualifier-list before ‘pcre’
 
这个问题是由于yaf扩展包需要安装PCRE的头文件和库.
PCRE可以从

ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/

下载安装.

安装之后就可以成功编译yaf扩展包了.

 posted on 2013-03-28 13:07  yhqruc  阅读(287)  评论(0编辑  收藏  举报