2013-09-07 12 views
5

काम नहीं कर रहा है। मुझे यह पता लगाना प्रतीत नहीं होता है। होमब्रू स्थापना के दौरान गिट को लिंक नहीं कर सकता है। यहां बताया गया है टर्मिनल बाहर थूक दिया गया है:होमब्री के साथ गिट स्थापित करना

==> 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 
    /usr/local/Cellar/git/1.8.4: 1339 files, 30M, built in 16 seconds 

मैं कोशिश की है चल रहा है:

brew link git 

साथ ही स्थापना रद्द करने और फिर से स्थापित करने। वर्तमान में मेरे/etc/पथ फ़ाइल इस प्रकार है:

/usr/local/bin 
/usr/bin 
/bin 
/usr/sbin 
/sbin 

कोई सुराग? ओह, मेरे पास गिटहब का मैक ऐप भी इंस्टॉल है (यदि यह मायने रखता है?)

+0

[इस जवाब देखें] (http://superuser.com/a/450207) sudo chown आर 'whoami'/usr/स्थानीय – mmell

उत्तर

5

ऐसा लगता है कि गिटहब के ऐप के साथ कोई संघर्ष है। मैं इसे हटा दूंगा, आपको इसकी आवश्यकता नहीं है।

कुछ लोगों के बारे में मैंने बात की थी कि यह एक प्रकार की छोटी गाड़ी थी और आप केवल टर्मिनल (जिसे मैं सहमत हूं) का उपयोग करने से बेहतर हूं।

संपादित करें: brew updatebrew upgradebrew doctor के बाद अधिक संकेत दे सकते हैं।

+1

धन्यवाद, इससे मदद मिली। रण 'ब्रू डॉक्टर', यह दो फ़ोल्डर्स पर 'चाउन' का उपयोग करने का सुझाव दिया। रैन कि, फिर 'गिट स्थापित करें' फिर से, और अब यह सब काम करता है! :) – Jonathan

0

सूत्र का निर्माण किया है, लेकिन /usr/local

में सांकेतिक रूप से लिंक नहीं है से लिंक अधिभावी का प्रयास करें:

brew link --overwrite git 

--dry-run जोड़े जो फाइलें यह प्रभावित करता है देखने के लिए।

यदि इससे भी विफल रहता है, अपने Homebrew अनुमतियाँ फिक्सिंग का प्रयास करें:

sudo chown -R $USER /usr/local/lib /usr/local/include /usr/local/bin /usr/local/Cellar 
संबंधित मुद्दे