macos - 如何更改 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
提前致谢。
解决方案
我遇到了同样的问题,因为我没有从终端上的本地路径安装自制软件。
我刚刚卸载了自制软件,再次安装(这次从本地路径),现在很好。
要卸载 Homebrew,请从 HomeBrew/install 存储库运行卸载脚本。
推荐阅读
- javascript - Console.log 不会在 forEach 中打印任何内容
- excel - 如何在运行后关闭检索最新 Excel 工作表的文件而不保存它
- linux - ElasticSearch 7.2.0 - 节点在集群模式下不相互连接
- javascript - 如何使用用户输入表单的数据创建弹出窗口?
- javascript - 自动将图像网格向左对齐
- c++ - 如何使 C++ 软件中的代码与 arduino 板通信?
- python - Python:从子返回“无”并打印返回值
- javascript - 在鼠标悬停时播放声音和移动图像
- bash - 如何使用 shell 脚本中的 sed 替换 txt 文件中某行中特定字符串之后的字符串?
- bash - 是否有一个 Bash 函数允许我在它们具有相同的第一个单词时从文件中分离/删除/隔离行