返回

git-拒绝密钥链访问后出现brew安装错误

发布时间:2022-06-13 11:48:35 314

我正在尝试在MacOS Monterey 12.4版中使用brew安装一些软件包。使用以下命令安装“g++”

brew install g++

弹出以下提示,询问我的钥匙链密码以允许访问。

git-credential-osxkeychain wants to use your confidential information stored in "github.com" in your keychain.
The authenticity of "git-credential-osxkeychain" cannot be verified. Do you want to allow access to this item?
Always Allow | Deny | Allow

我不小心按了一下;“拒绝”;现在我无法使用brew安装更多的软件包。

弹出以下错误

==> 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.

如果我尝试通过brew访问任何其他软件包,也会出现相同的错误。我重置了密钥链凭据,并重新添加了github.com到钥匙链访问。

我试过了

brew doctor

以下是警告:

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:
  /Users/sanleypeter/opt/anaconda3/bin/icu-config

...
...

Warning: Unbrewed '.la' files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected '.la' files:
  /usr/local/lib/libjags.la
  /usr/local/lib/libjrmath.la

Warning: Unbrewed '.pc' files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected '.pc' files:
  /usr/local/lib/pkgconfig/jags.pc
  /usr/local/lib/pkgconfig/tcl.pc
  /usr/local/lib/pkgconfig/tk.pc

Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected static libraries:
  /usr/local/lib/libtclstub8.6.a
  /usr/local/lib/libtkstub8.6.a

但我认为这些警告都没有关系。我也试过使用

rm -rf $(brew --repo homebrew/core)

我能做些什么来解决这个问题吗?还是应该重新安装brew并重试?

特别声明:以上内容(图片及文字)均为互联网收集或者用户上传发布,本站仅提供信息存储服务!如有侵权或有涉及法律问题请联系我们。
举报
评论区(0)
按点赞数排序
用户头像