首页 > Web开发 > 详细

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

时间:2014-10-24 18:41:23      阅读:554      评论:0      收藏:0      [点我收藏+]

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

 

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

原文:http://www.cnblogs.com/miaoshiqian/p/4048814.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!