运行 "brew install brewsci/bio/pymol" 上的酿造错误 "No such file or directory - /usr/local/Cellar/pango/1.46.1"

Brew error "No such file or directory - /usr/local/Cellar/pango/1.46.1" on running "brew install brewsci/bio/pymol"

我正尝试按照官方网站上的建议通过 Homebrew 包管理器在 mac 上安装 open-source 版本的 PyMOL:https://pymolwiki.org/index.php/MAC_Install#Open-Source_PyMOL.

在安装过程中,Homebrew 将pango 依赖从1.46.1 升级到1.46.2,并移除旧版本,然后在检查时抛出错误。

知道这个错误是从哪里来的吗?以及如何修复它?

Error: No such file or directory - /usr/local/Cellar/pango/1.46.1
$ ruby -v
ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]

$ brew reinstall pango

$ brew install ruby   
(if you already have an old version, then reinstall it by:)
$ brew reinstall ruby

那么你的ruby应该更新到2.7.2,但是,可能存在配置问题。

==> Downloading https://homebrew.bintray.com/bottles/ruby-2.7.2.catalina.bottle.
Already downloaded: /Users/lydia/Library/Caches/Homebrew/downloads/00c97dba192e9c242c6bb51b7d0a4a3a9fc77328277e43e49497c64e6450b55d--ruby-2.7.2.catalina.bottle.tar.gz
==> Reinstalling ruby 
==> Pouring ruby-2.7.2.catalina.bottle.tar.gz
==> Caveats
By default, binaries installed by gem will be placed into:
  /usr/local/lib/ruby/gems/2.7.0/bin

You may want to add this to your PATH.

ruby is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have ruby first in your PATH run:
  echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> /Users/lydia/.bash_profile

For compilers to find ruby you may need to set:
  export LDFLAGS="-L/usr/local/opt/ruby/lib"
  export CPPFLAGS="-I/usr/local/opt/ruby/include"

For pkg-config to find ruby you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/ruby/lib/pkgconfig"

==> Summary
  /usr/local/Cellar/ruby/2.7.2: 20,156 files, 35.3MB

我也收到同样的错误:错误:/usr/local/Cellar/libusbmuxd/HEAD-3eb50a0 不是目录。 我在 运行ning 之后收到此错误: 〜酿造更新 ~ 酿造过时

简单运行: ~ brew install pango
(Pango 是国际化文本布局和渲染的框架)

在 运行 升级之前,请确保您的 Apple 命令行工具也已更新。

然后我就可以运行: ~ brew upgrade

并且一切都正常更新,没有任何错误。我根本不需要更新 ruby。