问题描述
我运行了 brew 命令来安装 Facebook homebrew tap.我有一个 M1 Apple 硅芯片组,并使用 Rosetta 下的终端来执行 brew 命令.
I ran the brew command to install Facebook homebrew tap. I have a M1 Apple Silicon Chipset and use a terminal under Rosetta for brew commands.
brew tap facebook/fb
我收到错误消息:
==> Tapping facebook/fb
Cloning into '/usr/local/Homebrew/Library/Taps/facebook/homebrew-fb'...
remote: Enumerating objects: 46, done.
remote: Counting objects: 100% (46/46), done.
remote: Compressing objects: 100% (33/33), done.
remote: Total 333 (delta 27), reused 24 (delta 13), pack-reused 287
Receiving objects: 100% (333/333), 5.44 MiB | 9.18 MiB/s, done.
Resolving deltas: 100% (179/179), done.
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/facebook/homebrew-fb/buck.rb
buck: Calling depends_on :java is disabled! Use "depends_on "openjdk@11", "depends_on "openjdk@8" or "depends_on "openjdk" instead.
Please report this issue to the facebook/fb tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/facebook/homebrew-fb/buck.rb:19
Warning: Calling depends_on :osxfuse is deprecated! There is no replacement.
Please report this issue to the facebook/fb tap (not Homebrew/brew or Homebrew/core):
/usr/local/Homebrew/Library/Taps/facebook/homebrew-fb/xar.rb:8
Error: Cannot tap facebook/fb: invalid syntax in tap!
我在 Google 上搜索了 facebook/fb tap,我找到了一个 GitHib 存储库,但报告错误未激活:https://github.com/facebook/homebrew-fb
I searched for the facebook/fb tap on Google, I found a GitHib repo but reporting errors is unactivated: https://github.com/facebook/homebrew-fb
推荐答案
你能做的最简单的解决方案是 fork Facebook/FB 存储库到您的 GitHub 帐户,然后更改 buck.rb 文件中的第 19 行.应该是这样的:
The simplest solution you can do is fork the Facebook/FB repository into your GitHub account then change the 19th line in buck.rb file. It should be like this:
旧的:depends_on java:1.8"
old one: depends_on java: "1.8"
新的:depends_onopenjdk@8"
new one: depends_on "openjdk@8"
我们这样做 Buck 的原因仍然依赖于 Java 8.完成此操作后,您只需打开终端并写入:
The reason we do this Buck still relies on Java 8.After you do this you can simply open your terminal and write:
brew tap {yourGithubAccountName}/homebrew-fb
然后
brew install buck
这篇关于无效公式:/usr/local/Homebrew/Library/Taps/facebook/homebrew-fb/buck.rb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!