我想在我的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:
警告:发现了损坏的符号链接。请使用brew prune
命令删除它们:
/usr/local/bin/wget
/usr/local/share/man/man1/wget.1
/usr/local/Library/LinkedKegs/wget
sudo chown -R $USER:admin /usr/local
命令正确设置我的权限,正如 mistydemeo 提到的那样。这对我起作用了。 - iamktothed