首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Home Brew安装程序包获取无法解析到修订版的头文件

Home Brew安装程序包获取无法解析到修订版的头文件
EN

Stack Overflow用户
提问于 2021-01-12 03:32:51
回答 1查看 2.5K关注 0票数 2

我刚刚安装了最新的homebrew 2.7.3版本的自制软件。我在Mac上预安装了git,我尝试安装brew install git-crypt & brew install git-gui时,遇到致命错误:Mac‘t resolve HEAD to a revision。看起来它在任何包上都失败了。

代码语言:javascript
复制
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "git-crypt".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.

我尝试卸载,然后使用它们的命令行重新安装homebrew:https://github.com/homebrew/install#uninstall-homebrew

通过运行brew doctor,我收到了一些警告:

代码语言:javascript
复制
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and which additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew-provided
script of the same name. We found the following "config" scripts:
  /Library/Frameworks/Python.framework/Versions/3.8/bin/python3-config
  /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8-config

Warning: Some taps are not on the default git origin branch and may not receive
updates. If this is a surprise to you, check out the default branch with:
  git -C $(brew --repo homebrew/core) checkout master

我检查了这个目录

代码语言:javascript
复制
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core

并意识到没有公式文件夹。

任何帮助都将不胜感激。

EN

回答 1

Stack Overflow用户

发布于 2021-05-07 20:06:31

我犯了这个错误,解决了这个问题

代码语言:javascript
复制
git -C $(brew --repo homebrew/core) checkout master
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65673376

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档