如何更改 Homebrew 的前缀?

问题描述

我使用的是 MACOS M1,并开始在 ARM 下安装 brew。然后前几天,我在x86下安装了一些公式。

当我运行命令时 brew doctor 我收到了这条消息

Some of Homebrew's bottles (binary packages) can only be used with the default
prefix (/usr/local).
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
unsupported configuration.

如何将前缀改为/usr/local/?

当我运行 which -a brew 时,我得到了这个结果

/opt/homebrew/bin/brew
/usr/local/bin/brew

提前致谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)