PHP安装yaf在ubuntu下面的问题解决

在执行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

centos下面解决办法:# yum install pcre-devel

ubuntu下面解决办法:

sudo apt-get update 
sudo apt-get install libpcre3 libpcre3-dev 

你可能还需要安装
sudo apt-get install openssl libssl-dev

 

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。