1
安裝git與自制軟件有問題。嘗試每一個可用的解決方案。我對/ usr/local有寫權限。我可以在沒有問題的情況下進行brew更新和釀造醫生,但它說我已經安裝了git-git(不管是什麼)。我有哦,我的zsh外殼。如果這可能是相關的,我有xcode與git和原子安裝。無法在優勝美地上通過自制軟件安裝git
Last login: Tue Feb 24 09:56:18 on console
You have new mail.
# user at mymac in ~ [9:57:48]
$ brew install git
Error: git-git already installed
To install this version, first `brew unlink git'
# user at mymac in ~ [9:57:54]
$ brew unlink git
Error: No such keg: /usr/local/Cellar/git
# user at mymac in ~ [9:58:04]
$ brew update
Updated Homebrew from b33e8a75 to cf5325ac.
==> New Formulae
deisctl gcovr pdf-redact-tools
==> Updated Formulae
activemq couchdb-lucene hamsterdb libgadu redpen
avian datomic httpie libmpdclient unittest
berkeley-db gtk-gnutella ice mysql
cctools h2o ipsumdump mysql-cluster
# user at mymac in ~ [10:01:04]
$ brew doctor
Your system is ready to brew.
# user at mymac in ~ [10:01:25]
$ brew install git
Error: git-git already installed
To install this version, first `brew unlink git'
# user at mymac in ~ [10:01:30]
$ brew unlink git
Error: No such keg: /usr/local/Cellar/git
# user at mymac in ~ [10:01:35]
$ brew link git
Error: No such keg: /usr/local/Cellar/git
# user at mymac in ~ [10:01:44]
$ git --version
zsh: command not found: git
# user at mymac in ~ [10:02:01]
$ brew --version
0.9.5
# user at mymac in ~ [10:06:17]
$ git-git --version
zsh: command not found: git-git
# user at mymac in ~ [10:11:32]
$ which git-git
git-git not found
更新:我試圖改變背殼打壞。同樣的問題。
mymac:~ user$ git --version
-bash: git: command not found
mymac:~ user$ brew install git
Error: git-git already installed To install this version, first `brew unlink git'
mymac:~ user$ –
忘了提我使用約塞米蒂10.10.2
內部不自制使用Git嗎?自制軟件怎麼可能('brew update'),但運行'git --version'說'git'不在你的路上?你可以嘗試從Bash而不是zsh運行'brew install git'嗎? – nwinkler 2015-02-24 15:14:56
它的確如此。我實際上嘗試卸載自制軟件,並驚訝地發現它重新安裝成功。我會嘗試bash。 – madphp 2015-02-24 15:20:25
mymac:〜$用戶的git --version -bash:混帳:找不到命令 mymac:〜$用戶安裝沖泡混帳 錯誤:混帳混帳已經安裝 要安裝此版本,第一個'沖泡取消鏈接混帳」 mymac :〜用戶$ – madphp 2015-02-24 15:23:43