I’m trying to install [email protected] using brew. However, since it is a versioned formula, it returns an error.
brew install [email protected]
Error: [email protected] is disabled because it is a versioned expression!
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)