我需要一个特定版本的PHP用于Magento (7.1.3)。
使用Home brew或curl,我只能指定一个小数点(7.1,7.2等)。
运行
brew install php@7.1
最终让我得到
php -v
PHP 7.1.29 (cli) (built: May 21 2019 20:05:17) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.1.29, Copyright (c) 1999-2018, by Zend
Technologies
尝试安装特定版本(就像使用 nvm 安装 node 一样):
brew install php@7.1.3
让我感到困惑
Error: No available formula with the name "php@7.1.3"
我尝试使用curl命令,但出现了相同的问题:
https://php-osx.liip.ch/install.sh | bash -s 7.1.3
让我感动
Did or could not download package: 7.1.3-frontenddev
简述:如何在Mac上安装确切版本的PHP(7.1.3)?