I want to upgrade to PHP 8 with Homebrew on Mac. But there is a problem!
1.php -v
PHP 7.3.11 (cli) (built: Jun 5 2020 23:50:40) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies
2.brew install shivammathur/php/[email protected]
Updating Homebrew...
Warning: shivammathur/php/php 8.0.3 is already installed, it's just not linked.
To link this version, run:
brew link php
3.brew link php
Error: Formulae found in multiple taps:
* shivammathur/php/[email protected]
* exolnet/deprecated/[email protected]
Please use the fully-qualified name (e.g. shivammathur/php/[email protected]) to refer to the formula.
4.brew untap exolnet/deprecated
Error: Refusing to untap exolnet/deprecated because it contains the following installed formulae or casks:
[email protected]
Nothing seems to work. I need to upgrade to PHP8. Any help is appreciated.
I was also facing this issue. I have upgraded my macOS to BigSur and started to facing the issue of to unlink the PHP version.
So problem was that, I have installed the two repo one is from the old version which was exolnet and in new version I have also installed shivammathur repo. So when I tried to switch the version the system got confused to which repo he should use. So, I untap the exolnet by brew untap exolnet/deprecated
For me it worked to first uninstall then untap.
brew uninstall name_of_formula
brew untap cask_name/name_of_formula
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With