Can't install php7 or php 7.1 with homebrew
I had more or less the same issue when installing php71.
To resolve it, I had to delete /usr/local/Cellar/php71
using sudo rmdir -rf /usr/local/opt/php71
and then :
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
brew install php71
Hope it helps.
Everything is now outdated
- All was migrated to
homebrew/homebrew-core
For php 5.6 & php 7.0
As of now the tap is empty and all of its formulae are migrated to homebrew/core
so i untapped & cleaned
brew untap homebrew/dupes
brew cleanup
And tapped this repo for older php versions
brew tap exolnet/homebrew-deprecated
And resinstalled php versions
brew reinstall [email protected]
brew reinstall [email protected]