gpt4 book ai didi

homebrew - Brew 更新在 mac 10.9 之后不起作用

转载 作者:行者123 更新时间:2023-12-03 05:55:10 25 4
gpt4 key购买 nike

自 10.9 升级以来首次运行brew。

从下面的输出中,我应该删除 Library/Formula/ant.rb 和 Library/Formula/apple-gcc42.rb 吗?另外,不清楚为什么 git pull 失败。感谢您的帮助

525    [projects]$  brew --config
HOMEBREW_VERSION: 0.9.4
ORIGIN: https://github.com/mxcl/homebrew.git
HEAD: 27c26faf7b958de6028ad55be8ccc5a57b094d3f
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit ivybridge
OS X: 10.9-x86_64
Xcode: 5.0.2
GCC-4.2: build 5666
LLVM-GCC: build 0
Clang: 5.0 build 500
X11: N/A
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /Users/*****/.rvm/rubies/ruby-2.0.0-p195/bin/ruby
526 [projects]$ brew update
error: The following untracked working tree files would be overwritten by merge:
Library/Formula/ant.rb
Library/Formula/apple-gcc42.rb
Please move or remove them before you can merge.
Aborting
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master

最佳答案

这为我解决了这个问题

cd `brew --prefix`/Homebrew
git fetch origin
git reset --hard origin/master

brew 更新之后工作正常

关于homebrew - Brew 更新在 mac 10.9 之后不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20133587/

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