I try to install php@7.3 using brew. But, it return error because it is versioned formula. What is it?
command: brew install php@7.3
result: Error: php@7.3 has been disabled because it is a versioned formula!
I try to install php@7.3 using brew. But, it return error because it is versioned formula. What is it?
command: brew install php@7.3
result: Error: php@7.3 has been disabled because it is a versioned formula!
You can only install supported versions of PHP with brew. However, there is the tap shivammathur/php
which can be used to install unsupported version of PHP.
brew tap shivammathur/php
brew install shivammathur/php/php@7.3
brew link php@7.3
The first step only needs to be done once. After adding the tap, you can install PHP version 5.6 - 8.2.
I applied the same instructions given by @derhansen and worked very well for php@7.4:
brew tap shivammathur/php
brew install shivammathur/php/php@7.4
brew link php@7.4
You can also edit the formula and re-enable it. These steps worked for me:
brew edit php@7.4
disable! date: "2022-11-28", because: :versioned_formula
. Change 2022 to 2023brew install php@7.4
The bottles still exist online, so installation was very fast, but I assume that they will eventually be deleted, forcing a slow compile instead.
BTW, brew install php@7.4
gives out same warning, but does install php7, so this could be an option
disable! date: "2022-11-28", because: :versioned_formula