Ubuntu下安装yaf:php
https://github.com/laruence/php-yaf
html
phpize #若是提示没有安装 那么安装一下,sudo apt-get install php5-devgit
在目录下运行phpize就会 有configure了 ,
github
若是make错误 可能有这个问题:工具
/usr/include/php5/ext/pcre/php_pcre.h:29:18: fatal error: pcre.h: No such file or directoryspa
运行这个
code
sudo apt-get install libpcre3-dev
and then try and install Phalcon againhtm
For CentOS you will need to useget
sudo yum install pcre-devel
Credits: @xgretschit
For Mac you can use
brew install pcre
运行 php yaf_cg sample 会生成一个目录和文件进入查看readme.txt就是这里的readme2.txt
在升级PHP版本(v5.4.x)后从新安装Yaf,而后配置php.ini载入yaf.so后重启php遇到报错(红框根据本身环境看)