嗨,我刚尝试在我的Mac上通过Homebrew安装Git - 似乎有些问题。我曾经安装了GitHub for Mac应用程序,但我尝试将其移除了。我系统中当前的Git版本是:
Nielsk@~: $ git --version
git version 1.9.3 (Apple Git-50)
如果我尝试通过Homebrew安装Git,会发生以下情况:
Nielsk@~: $ brew install git
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/git-2.1.3.y
######################################################################## 100,0%
==> Pouring git-2.1.3.yosemite.bottle.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
Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
Permission denied - /usr/local/lib/perl5/site_perl/5.18.2
Error: Permission denied - /usr/local/lib/perl5/site_perl/5.18.2
我该怎么解决这个问题?
sudo brew install git
作为提升用户进行安装,会发生什么? - Michael Petchsudo
甚至不被支持。 - Michael Petch