Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: php@7.3 has been disabled because it is a versioned formula

Tags:

php

homebrew

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!

like image 242
Elbo Shindi Pangestu Avatar asked Dec 31 '22 11:12

Elbo Shindi Pangestu


1 Answers

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.

  1. brew tap shivammathur/php
  2. brew install shivammathur/php/php@7.3
  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.

like image 69
derhansen Avatar answered Jan 13 '23 12:01

derhansen