简体   繁体   English

安装 Brew 后在 MAC 上升级 PHP 7.4 时出错

[英]Error upgrading PHP 7.4 on MAC after Brew installation

I have a Mac Air with Ventura OS.我有一台装有 Ventura 操作系统的 Mac Air。 I just installed Brew and after that I can't upgrade PHP anymore.我刚刚安装了 Brew,之后我不能再升级 PHP。 I get the following error: Error: php@7.4 has been disabled because it is a versioned formula?我收到以下错误:错误:php@7.4 已被禁用,因为它是一个版本化的公式? How can I solve it.我该如何解决。 New to MacOS and Brew. MacOS 和 Brew 的新手。 Thanks Fabio谢谢法比奥

No clue what to do at this point.不知道此时该做什么。

The message tells you that PHP 7.4 is outdated.该消息告诉您 PHP 7.4 已过时。 You can either install PHP8您可以安装 PHP8

brew install php

or link a 3rd party repository and install 7.4 from there.或链接第 3 方存储库并从那里安装 7.4。

For example:例如:

brew tap shivammathur/php
brew install shivammathur/php/php@7.4
brew link php@7.4

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM