install phalcon on mac with XAMPP

首先使用brew安装对应版本的phalcon,参考https://docs.phalconphp.com/en/latest/reference/tutorial.htmlphp

安装好后会有 phalcon.so生成,位置是 /usr/local/Cellar/php56-phalcon/2.0.9/phalcon.sohtml

而后,找到xampp下php的php.ini文件,个人是/Applications/XAMPP/xamppfiles/etc/php.inispa

在该文件最后一行添加:htm

/usr/local/Cellar/php56-phalcon/2.0.9/phalcon.soblog

 

而后再食用xampp下的php运行get

php -mio

会发现phalcon已经在列表中了。phalcon

 

参考:http://blog.thesecretlab.nl/install-phalcon-on-a-mac/class

http://stackoverflow.com/questions/30071652/phalcone-mac-and-xampptest

相关文章
相关标签/搜索