Issue
I’m trying to install [email protected] using brew. However, since it is a versioned formula, it returns an error.
Command: brew install [email protected]
Result: Error: [email protected] is disabled because it is a versioned expression!
Solution
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/[email protected]
brew link [email protected]
The first step only needs to be done once. After adding the tap, you can install PHP version 5.6 – 8.2.
Answered By – derhansen
Answer Checked By – David Goodson (Easybugfix Volunteer)