我在centos 6.4 x86_64下编译的错误
In file included from/var/www/html/yaf-2.2.9/yaf_router.c:28:
/usr/include/php/ext/pcre/php_pcre.h:29:18: error: pcre.h: No suchfile or directory
In file included from/var/www/html/yaf-2.2.9/yaf_router.c:28:
/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: expectedspecifier-qualifier-list before ‘pcre’
make: *** [yaf_router.lo] Error 1
In file included from/var/www/html/yaf-2.2.9/yaf_router.c:28:
/usr/include/php/ext/pcre/php_pcre.h:29:18: error: pcre.h: No suchfile or directory
In file included from/var/www/html/yaf-2.2.9/yaf_router.c:28:
/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: expectedspecifier-qualifier-list before ‘pcre’
make: *** [yaf_router.lo] Error 1
解决方法:安装pcre-devel centos,安装后即可解决
yum install pcre-devel