在安装过程中,Homebrew无法链接Git [英] Homebrew can’t link Git during the installation

查看:163
本文介绍了在安装过程中,Homebrew无法链接Git的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎无法弄清楚这一点。在安装过程中,Homebrew无法链接git。以下是终端吐出的内容:

  ==>正在下载http://git-core.googlecode.com/files/git-1.8.4.tar.gz 
已经下载:/Library/Caches/Homebrew/git-1.8.4.tar.gz
==> make prefix = / usr / local / Cellar / git / 1.8.4 sysconfdir = / usr / local / etc CC = cc CFLA
==> make CC = cc CFLAGS = LDFLAGS =
==> make clean
==> make CC = cc CFLAGS = LDFLAGS =
==>正在下载http://git-core.googlecode.com/files/git-manpages-1.8.4.tar.gz
已经下载:/Library/Caches/Homebrew/git-manpages-1.8.4.tar。 gz
==>正在下载http://git-core.googlecode.com/files/git-htmldocs-1.8.4.tar.gz
已经下载:/Library/Caches/Homebrew/git-htmldocs-1.8.4.tar。 gz
==>注意事项
OS X钥匙串凭证助手已安装到:
/ usr / local / bin / git-credential-osxkeychain

'contrib'目录已安装到:
/ usr / local / share / git-core / contrib

Bash完成已安装到:
/usr/local/etc/bash_completion.d

zsh完成已安装到:
/ usr / local / share / zsh / site-functions
警告:无法链接git。取消链接...
错误:`brew link`步骤没有成功完成
构建的公式,但没有链接到/ usr / local
您可以使用`brew link git '

可能的冲突文件是:
/ usr / local / share / git-core / templates / info / exclude - > /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/info/exclude
/usr/local/share/git-core/templates/hooks/update.sample - > /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/hooks/update.sample
/ usr / local / share / git-core / templates / hooks / prepare-commit-msg .sample - > /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/hooks/prepare-commit-msg.sample
/ usr / local / share / git-core / templates / hooks / pre -rebase.sample - > /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/hooks/pre-rebase.sample
/ usr / local / share / git-core / templates / hooks / pre-push .sample - > /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/hooks/pre-push.sample
/ usr / local / share / git-core / templates / hooks / pre-commit .sample - > /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/hooks/pre-commit.sample
/ usr / local / share / git-core / templates / hooks / pre-applypatch .sample - > /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/hooks/pre-applypatch.sample
/ usr / local / share / git-core / templates / hooks / post-update .sample - > /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/hooks/post-update.sample
/ usr / local / share / git-core / templates / hooks / commit-msg .sample - > /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/hooks/commit-msg.sample
/ usr / local / share / git-core / templates / hooks / applypatch-msg .sample - > /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/hooks/applypatch-msg.sample
/ usr / local / share / git-core / templates / description - > /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/description
==>总结

I can’t seem to figure this out. Homebrew can’t link git during the installation. Here’s what Terminal spits out:

==> Downloading http://git-core.googlecode.com/files/git-1.8.4.tar.gz
Already downloaded: /Library/Caches/Homebrew/git-1.8.4.tar.gz
==> make prefix=/usr/local/Cellar/git/1.8.4 sysconfdir=/usr/local/etc CC=cc CFLA
==> make CC=cc CFLAGS= LDFLAGS=
==> make clean
==> make CC=cc CFLAGS= LDFLAGS=
==> Downloading http://git-core.googlecode.com/files/git-manpages-1.8.4.tar.gz
Already downloaded: /Library/Caches/Homebrew/git-manpages-1.8.4.tar.gz
==> Downloading http://git-core.googlecode.com/files/git-htmldocs-1.8.4.tar.gz
Already downloaded: /Library/Caches/Homebrew/git-htmldocs-1.8.4.tar.gz
==> Caveats
The OS X keychain credential helper has been installed to:
  /usr/local/bin/git-credential-osxkeychain

The 'contrib' directory has been installed to:
  /usr/local/share/git-core/contrib

Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completion has been installed to:
  /usr/local/share/zsh/site-functions
Warning: Could not link git. Unlinking...
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link git'

Possible conflicting files are:
/usr/local/share/git-core/templates/info/exclude -> /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/info/exclude
/usr/local/share/git-core/templates/hooks/update.sample -> /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/hooks/update.sample
/usr/local/share/git-core/templates/hooks/prepare-commit-msg.sample -> /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/hooks/prepare-commit-msg.sample
/usr/local/share/git-core/templates/hooks/pre-rebase.sample -> /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/hooks/pre-rebase.sample
/usr/local/share/git-core/templates/hooks/pre-push.sample -> /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/hooks/pre-push.sample
/usr/local/share/git-core/templates/hooks/pre-commit.sample -> /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/hooks/pre-commit.sample
/usr/local/share/git-core/templates/hooks/pre-applypatch.sample -> /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/hooks/pre-applypatch.sample
/usr/local/share/git-core/templates/hooks/post-update.sample -> /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/hooks/post-update.sample
/usr/local/share/git-core/templates/hooks/commit-msg.sample -> /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/hooks/commit-msg.sample
/usr/local/share/git-core/templates/hooks/applypatch-msg.sample -> /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/hooks/applypatch-msg.sample
/usr/local/share/git-core/templates/description -> /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/description
==> Summary

                        

这篇关于在安装过程中,Homebrew无法链接Git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆