gpt4 book ai didi

homebrew - 为什么我所有的 Homebrew 软件包突然变成 "unlinked";我该如何解决?

转载 作者:行者123 更新时间:2023-12-04 15:19:39 26 4
gpt4 key购买 nike

最近 brew doctorbrew upgrade --all (我不确定哪个,我在脚本中运行它们)报告了以下内容:

Homebrew from 5371359 to e3fe270.
Updated 3 taps (caskroom/cask, homebrew/boneyard, homebrew/core).
Error: Could not symlink bin/dvipdf
Target /usr/local/bin/dvipdf
already exists. You may want to remove it:
rm '/usr/local/bin/dvipdf'

To force the link and overwrite all conflicting files:
brew link --overwrite ghostscript

To list all files that would be deleted:
brew link --overwrite --dry-run ghostscript
Error: Could not symlink bin/easy_install
Target /usr/local/bin/easy_install
already exists. You may want to remove it:
rm '/usr/local/bin/easy_install'

To force the link and overwrite all conflicting files:
brew link --overwrite python

To list all files that would be deleted:
brew link --overwrite --dry-run python:

我按照以下说明运行:
 brew link --overwrite python
brew link --overwrite ghostscript

但现在每当我跑 brew doctor得到:
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
# A list of EVERYTHING listed by brew list

即: brew doctor现在显示我已安装的所有内容 - brew list 列出的所有内容— 未链接!

这里发生了什么?为什么我使用 Homebrew 安装的所有东西突然都没有链接?他们是怎么做到的?我可以(安全地)做些什么来修复我的 Homebrew 安装(除了手动运行 brew link --overwrite ... 在我安装的每个东西上单独运行?

最佳答案

运行 brew update (如有必要,两次)应该解决这个问题。

如果没有,brew unlink $(brew list); brew link $(brew list)将要。

关于homebrew - 为什么我所有的 Homebrew 软件包突然变成 "unlinked";我该如何解决?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39547388/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com