防止有关 Macports/Fink 安装的警告
当我安装某些东西时,如何防止 Homebrew 出现以下警告?
警告:您似乎已安装 MacPorts 或 Fink。 与其他包管理器一起安装的软件会导致以下已知问题 自制。如果公式构建失败,请卸载 MacPorts/Fink,然后重试。
请注意,我从来没有(我记得)在这台机器上安装过 Fink,我只是卸载了 Macports。我尝试从我的 PATH 中删除 /opt/local/bin 但无济于事。
How can I prevent the following warning from Homebrew appearing whenever I install something?
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
Note that I've never (that I recall) installed Fink on this machine and I just uninstalled Macports. I've tried removing /opt/local/bin from my PATH to no avail.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您是否遵循官方指南? (特别是“rm”部分)
Did you follow the official guide? (specially the "rm" part)
查看源(在def macports_or_fink_installed?),似乎检查了一些东西像这样:
Looking at the source (in def macports_or_fink_installed?), it seems to check something like this:
这是一个肮脏的黑客行为,但如果你只是想消除警告,你可以在 $(brew --prefix)/Library/Homebrew/cmd/install.rb 中注释掉 check_macports 的相关部分。
It's a dirty hack but if you just want to silence the warning you can comment out the relevant parts of
check_macports
in$(brew --prefix)/Library/Homebrew/cmd/install.rb
.