拒绝解开exolnet/已弃用,因为它包含以下已安装的配方奶粉或容器:



我想在Mac上使用Homebrew升级到PHP 8。但是有个问题!

1.php -v

PHP 7.3.11 (cli) (built: Jun  5 2020 23:50:40) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies 

2.brew install shivammathur/php/php@8.0

Updating Homebrew...
Warning: shivammathur/php/php 8.0.3 is already installed, it's just not linked.
To link this version, run:
brew link php

3.brew link php

Error: Formulae found in multiple taps:
* shivammathur/php/php@5.6
* exolnet/deprecated/php@5.6
Please use the fully-qualified name (e.g. shivammathur/php/php@5.6) to refer to the formula.

4.brew untap exolnet/deprecated

Error: Refusing to untap exolnet/deprecated because it contains the following installed formulae or casks:
php@5.6

似乎什么都不管用。我需要升级到PHP8。感谢您的帮助。

我也面临这个问题。我已经将我的macOS升级到BigSur,并开始面临取消PHP版本链接的问题。

所以问题是,我安装了两个repo,一个来自旧版本,即exolnet,在新版本中,我还安装了shivammathur repo。因此,当我试图切换版本时,系统混淆了他应该使用哪种回购。因此,我通过酿造untap exolnet/弃用的来解开exolnet

对我来说,它先卸载,然后卸载。

brew uninstall name_of_formula
brew untap cask_name/name_of_formula

删除exolnet/deprecated:

HOMEBREW_DEVELOPER=1 brew untap exolnet/deprecated

然后再次尝试链接PHP版本。

最新更新