[英]Unable to run composer install on Magento 2.2.4 setup
克隆存儲庫后,我目前無法在本地主機上設置現有的Magento站點,因此無法運行composer install。 我收到以下錯誤:
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 list,它會顯示mcrypt已經安裝,但是卸載並沒有幫助。 我也嘗試過完全重新安裝brew,但這也無濟於事。 我對Magento和Brew都缺乏經驗,所以如果我在這里缺少任何信息,請告訴我。
您在brew上使用哪個PHP版本? (php -v)我有類似的時間,即使brew服務顯示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.1替換7.0,以獲取7.1版的PHP
如果php -v
的輸出仍未回顯版本7,只需鍵入此命令以更新您的路徑,就可以做到,如php-osx.liip.ch
網站上php-osx.liip.ch
。
export PATH=/usr/local/php5/bin:$PATH
要么
export PATH=”$(brew — prefix homebrew/php/php70)/bin:$PATH
要么
export PATH="$(brew --prefix homebrew/php/php70)/bin:$PATH
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.