mac 安装phalcon

来源:互联网 发布:胡杨网络 天津 编辑:程序博客网 时间:2024/06/14 19:27

原文链接:https://my.oschina.net/kmwzjs/blog/480257

#brew添加源brew updatebrew tap homebrew/dupesbrew tap homebrew/versionsbrew tap homebrew/php#最好执行一下doctorbrew doctor#安装扩展brew install php71-phalcon

安装后重启php

sudo php71-fpm restart

报错

PHP Warning:  PHP Startup: phalcon: Unable to initialize moduleModule compiled with build ID=API20160303,NTSPHP    compiled with build ID=API20160303,NTS,debugThese options need to match in Unknown on line 0Warning: PHP Startup: phalcon: Unable to initialize moduleModule compiled with build ID=API20160303,NTSPHP    compiled with build ID=API20160303,NTS,debug

删除扩展

brew remove php71-phalcon

源码安装

brew install php71-phalcon --build-from-source

再重启fpm

phpinfo后能看到扩展了
这里写图片描述