Mac brew安装多个版本PHP
执行过程
➜ ~ brew install homebrew/php/php72
==> Installing php72 from homebrew/php
Error: Cannot install homebrew/php/php72 because conflicting formulae are installed.
php70: because different php versions install the same binaries.
Please `brew unlink php70` before continuing.
Unlinking removes a formula's symlinks from /usr/local. You can
link the formula again after the install finishes. You can --force this
install, but the build may fail or cause obscure side-effects in the
resulting software.
➜ ~ brew unlink php70
Unlinking /usr/local/Cellar/php70/7.0.10_1... 17 symlinks removed
➜ ~ brew install homebrew/php/php72
......各种提示信息.....省略无数字
➜ ~ php -v
PHP 7.2.0 (cli) (built: Dec 3 2017 21:47:51) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2017 Zend Technologies
执行结束。
参考链接地址:http://www.jianshu.com/p/704e9b1712e9
可参考图片:
本文链接二维码可以保存在本地:保存
http://shixiangcun.cc/index.php?c=index&id=109&m=articleDetailInfo
分类 其他 | 浏览 (4684) | 赞 (0) | 踩 (0) | | 2017-12-14 10:35:26 |
相关文章
- Mac 终端查看外网IP
- 用古诗吵架的小两口
- Mac下brew卸载php7重新安装php7
- Mac yld: Library not loaded: /usr/local/opt/jpeg/lib/libjpeg.8.dylib
- Mac homebrew install php7自定义参数生成libphp7.so
- Mac brew Error: Cannot tap homebrew/php: invalid syntax in tap!