Php 无法在Magento 2.2.4安装程序上运行composer安装

Php 无法在Magento 2.2.4安装程序上运行composer安装,php,composer-php,homebrew,magento2,Php,Composer Php,Homebrew,Magento2,我目前正在本地主机上尝试设置现有的Magento站点,克隆存储库后无法运行composer安装。我得到以下错误: Problem 1 - Installation request for magento/framework 101.0.4 -> satisfiable by magento/framework[101.0.4]. - magento/framework 101.0.4 requires ext-mcrypt * -> the requested PHP extensi

我目前正在本地主机上尝试设置现有的Magento站点,克隆存储库后无法运行composer安装。我得到以下错误:

Problem 1
- Installation request for magento/framework 101.0.4 -> satisfiable by magento/framework[101.0.4].
- magento/framework 101.0.4 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
Problem 2
- Installation request for magento/magento2-base 2.2.4 -> satisfiable by magento/magento2-base[2.2.4].
- magento/magento2-base 2.2.4 requires ext-intl * -> the requested PHP extension intl is missing from your system.
Problem 3
- Installation request for magento/product-community-edition 2.2.4 -> satisfiable by magento/product-community-edition[2.2.4].
- magento/product-community-edition 2.2.4 requires ext-intl * -> the requested PHP extension intl is missing from your system.
因此,似乎缺少一些PHP扩展,但是当尝试通过brew安装它们时,会出现以下错误:

Error: No available formula with the name "php71-mcrypt" 
==> Searching for a previously deleted formula (in the last month)...
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.
另外,如果我使用brew列表,它会显示已经安装了mcrypt,但是卸载没有帮助。我还尝试完全重新安装brew,但同样没有帮助。
我对Magento和Brew都缺乏经验,因此如果我在这里缺少任何信息,请告诉我。

您在Brew上使用的是哪个PHP版本?(php-v)
尽管brew服务显示7.1正在运行,但我实际上默认为7.0,我也有类似的情况。

您在brew上使用的是哪个PHP版本?(php-v)
尽管brew services显示7.1正在运行,但我实际上默认为7.0,我的情况与此类似。

按显示的顺序输入以下命令:

brew update && brew upgrade
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
brew unlink php70 or 56 
brew install php71
curl -s http://php-osx.liip.ch/install.sh | bash -s 7.0
您可以在上面的命令中将7.0替换为7.1,以获得PHP的7.1版本

如果
php-v
的输出仍然与版本7不一致,只需键入此命令来更新路径,它就会发挥神奇的作用,如
php osx.liip.ch
网站所述

export PATH=/usr/local/php5/bin:$PATH


按所示顺序输入以下命令:

brew update && brew upgrade
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
brew unlink php70 or 56 
brew install php71
curl -s http://php-osx.liip.ch/install.sh | bash -s 7.0
您可以在上面的命令中将7.0替换为7.1,以获得PHP的7.1版本

如果
php-v
的输出仍然与版本7不一致,只需键入此命令来更新路径,它就会发挥神奇的作用,如
php osx.liip.ch
网站所述

export PATH=/usr/local/php5/bin:$PATH


Php-v返回7.0.8,而MAMP和phpinfo()返回;两者都使用PHP7.2HP-v返回7.0.8,而MAMP和phpinfo()返回7.0.8;两者都使用PHP7.2来获得详细的响应。我能够让php-v更新到与我在MAMP(7.2.1)上使用的版本相同的版本,但是现在在尝试运行composer install时,它抛出了130个错误,php~7.1是受支持的最高php版本,因此我将尝试重新安装旧版本的MAMP,看看是否有效。感谢您的详细回复。我能够让php-v更新到与我在MAMP(7.2.1)上使用的版本相同的版本,但是现在在尝试运行composer install时,它抛出了大约130个错误,php~7.1是受支持的最高php版本,因此我将尝试重新安装旧版本的MAMP,看看是否有效。