install phalcon on mac with XAMPP

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

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

然后,找到xampp下php的php.ini文件,我的是/Applications/XAMPP/xamppfiles/etc/php.ini

在该文件最后一行添加:

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

 

然后再食用xampp下的php运行

php -m

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

 

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

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

原文地址:https://www.cnblogs.com/pinganzi/p/5142740.html