gpt4 book ai didi

homebrew - Mac OS X 上更新 Brew 错误

转载 作者:行者123 更新时间:2023-12-02 18:45:53 27 4
gpt4 key购买 nike

我正在尝试在我的 Mac OS X 机器上更新brew,以便我可以更新 php。但是,当尝试运行 brew install 时,我收到此错误:

error: The following untracked working tree files would be overwritten by merge:
Library/Homebrew/extend/enumerable.rb
Please move or remove them before you can merge.
Aborting
Error: Failure while executing: git pull --quiet origin refs/heads/master:refs/remotes/origin/master

brew doctor :

警告:发现损坏的符号链接(symbolic link)。使用 brew prune 删除它们: /usr/local/bin/wget /usr/local/share/man/man1/wget.1 /usr/local/Library/LinkedKegs/wget

最佳答案

在这里检查解决方案 https://github.com/Homebrew/homebrew/issues/21002

简而言之

cd /usr/local
git status
git reset --hard origin/master
git clean -df

关于homebrew - Mac OS X 上更新 Brew 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32106118/

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