Mac os 1.14 系统以后,若是想安装php5.6版本的时候,没法用brew install php5.6
安装,由于在新的brew
中已经废弃了php5.6
和php7.0
,若是使用brew search php
搜索出来的Php版本最低是php@7.1
的,由于公司项目须要安装php5.6
的版本,困扰了我好久,终于在google
上找到了如何在新版本的系统上安装php5.6
的方法,分享给你们。php
brew tap exolnet/homebrew-deprecated
shell
brew search php
php7
brew install php@5.6
ui
brew services start php@5.6
google
memcachecode
pecl install memcache-3.0.8
homebrew
问题总结ci
configure: error: memcache support requires ZLIB. Use --with-zlib-dir=<DIR> to specify prefix where ZLIB include and library are located
it
解决方案class
不可直接复制,注意上面的crul的版本
brew install zlib ln -s /usr/local/Cellar/zlib/1.2.11/include/* /usr/local/include ln -s /usr/local/Cellar/zlib/1.2.11/lib/* /usr/local/lib