【发布时间】:2014-10-11 20:46:12
【问题描述】:
使用 Homebrew 安装 Git 时收到以下警告:
Warning: git-2.1.1 already installed, it's just not linked
我一直在尝试使用 Homebrew 更新我的 Git 版本:
brew upgrade Git
并收到此消息: 错误:未安装 git
然后我使用了命令:brew install git
并收到此消息:
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/git
Target /usr/local/bin/git
already exists. You may want to remove it:
rm /usr/local/bin/git
To force the link and overwrite all conflicting files:
brew link --overwrite git
To list all files that would be deleted:
brew link --overwrite --dry-run git
我尝试了覆盖命令并收到此错误: 错误:无法符号链接 share/git-core/contrib /usr/local/share/git-core 不可写。
然后我运行 git --version 并收到: -bash: /usr/local/bin/git: 没有这样的文件或目录
然后运行 brew install Git 并收到: 警告:git-2.1.1 已经安装,只是没有链接
我现在完全不知道该怎么做。任何帮助将非常感激。提前致谢!
【问题讨论】: