phalcon官方安装地址:https://github.com/phalcon/cphalcon
参考官方的做法是:
brew install php71-phalcon
但是会出现这样的问题:
如下问题:
Warning:homebrew/core is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow
Error:No previously deleted formula found.
==>Searching for similarly named formulae...
==>Searching local taps...
Error:No similarly named formulae found.
==>Searching taps...
==>Searching taps on GitHub...
Error:No formulae found in taps.
以上报了3个error
解决步骤:
1、我们先解决第一个问题,参考提示 运行 安装
git -C "$(brew --repo homebrew/core)" fetch --unshallow
2、再解决taps的问题:
brew tap homebrew/homebrew-php
3、最后安装
brew install php71-phalcon
由于我本机是mac os high sierra版本 自带php7.1环境了,homebrew工具是老版本,我还是需要update一下 或者重新官网安装一下,地址如下:
https://brew.sh/index_zh-cn.html
最后就等待brew 命令自动安装phalcon环境吧。
如下安装完后的提示:
附phalcon安装文档:https://docs.phalconphp.com/zh/3.2/installation