मैंने ओएस एक्स एल कैपिटन पर होमब्रू स्थापित किया। स्थापना के आखिरी चरणों में मुझेब्रू डॉक्टर चेतावनी: पाथ में गिट कैसे जोड़ें?
brew install git
के साथ गिट स्थापित करना था। अब अगर मैं 'काढ़ा डॉक्टर' रन होता है:
$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!
Warning: Git could not be found in your PATH.
Homebrew uses Git for several internal functions, and some formulae use Git
checkouts instead of stable tarballs. You may want to install Git:
brew install git
मैं चलाने 'शराब बनाना Git स्थापित' अगर फिर से, मैं मिलता है:
$ brew install git
Warning: git-2.7.4 already installed
तो अनावश्यक कहने के लिए मेरे Git संस्करण 2.7.4 है। 'काढ़ा अद्यतन को फेंक देता:
$ brew update
Warning: git-2.7.4 already installed
Error: Git must be installed and in your PATH!
प्रश्न: मैं अपने पथ कैसे ठीक करूं तो Git मेरे पथ में पाया जा सकता है और' आपका सिस्टम काढ़ा करने के लिए तैयार है 'में' काढ़ा डॉक्टर 'परिणाम?
अतिरिक्त जानकारी:
जिसमें Git परिणाम -एक:
$ which -a git /usr/local/bin/git /usr/local/bin/git /usr/bin/git
मैं संभावित सुधारों की बहुत कोशिश की, इस बीच मैं मार डाला:
echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_profile
मेरा ~/.bash_profi le अब इस तरह दिखता है:
$ brew tap caskroom/cask ==> Installing git Warning: git-2.7.4 already installed Error: Git is unavailable
काढ़ा config:
$ brew config HOMEBREW_VERSION: 0.9.5 ORIGIN: (none) HEAD: (none) Last commit: never HOMEBREW_PREFIX: /usr/local HOMEBREW_REPOSITORY: /usr/local HOMEBREW_CELLAR: /usr/local/Cellar HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com CPU: quad-core 64-bit haswell OS X: 10.11.4-x86_64 Xcode: 7.3 CLT: 7.3.0.0.1.1457485338 Clang: 7.3 build 703 X11: N/A System Ruby: 2.0.0-p648 Perl: /usr/bin/perl Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/bin/python2.7 Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby Java: 1.8.0_40
संपादित करें: जोड़ा गया पीपा में अतिरिक्त जानकारी के लिए
# Setting PATH for Python 2.7
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH=/usr/local/bin:$PATH
जब मैं पीपा स्थापित करने का प्रयास।
EDIT2: जोड़ा गया काढ़ा config और कहा काढ़ा चिकित्सक उपसर्ग
कृपया 'ब्रू डॉक्टर' और 'ब्रू कॉन्फ़िगरेशन' का पूरा आउटपुट भी पोस्ट करें। – bfontaine
@bfontaine मैंने 'ब्रू कॉन्फ़िगरेशन' जोड़ा और 'ब्रू डॉक्टर' (होमब्री चेतावनियों के बारे में सामान्य नोट, जिसे मैंने पहली जगह में महत्वहीन माना) पूरा किया। – ncw
धन्यवाद; क्या 'स्रोत ~/.bash_profile' समस्या को ठीक करता है? – bfontaine