最近在Centos 下编译安装Yaf出现了错误,后来将问题解决了,特附上解决方法,希望能帮上朋友们!
问题描述:
在编译安装Yaf框架时,在make的是出现如下错误提示:
In file included from /root/yaf-2.1.2/yaf_router.c:28:
/usr/include/php/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such file or directory
In file included from /root/yaf-2.1.2/yaf_router.c:28:
/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’
make: *** [yaf_router.lo] 错误 1
解决办法:
# yum install pcre-devel
安装 pcre-devel即可解决了。
支持( 0 ) 盖楼(回复)
支持( 0 ) 盖楼(回复)