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遇到報錯(紅框根據本身環境看)