我試圖在我的Mac上使用Brew安裝PHP 7.1。除Apple默認安裝的版本外,我沒有任何版本的PHP。PHP 7.1安裝自制軟件 - 運行brew tap的錯誤homebrew/homebrew-php
我已經運行下面的命令(基於各個崗位)上安裝PHP 7.1:
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
當我運行自制軟件的PHP我得到以下信息(從終端複製)釀造水龍頭。任何人都可以提出我需要做什麼?
brew tap homebrew/homebrew-php
==> Tapping homebrew/php
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-php'...
remote: Counting objects: 757, done.
remote: Compressing objects: 100% (512/512), done.
remote: Total 757 (delta 505), reused 305 (delta 236), pack-reused 0
Receiving objects: 100% (757/757), 306.08 KiB | 0 bytes/s, done.
Resolving deltas: 100% (505/505), done.
Checking out files: 100% (748/748), done.
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-php/Formula/deployer.rb
invalid attribute for formula 'homebrew/php/deployer': version (nil)
Error: Cannot tap homebrew/php: invalid syntax in tap!
我現在不使用Homebrew,因爲我使用Ubuntu,但我想應該有一個PHP7.1的默認公式。 'brew search php7'返回什麼? –