OS X El CapitanにHomebrewをインストールしました。インストールの最後のステップで、私はbrew doctor警告:PATHにgitを追加するには?
brew install git
で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をインストール醸造」、私が手:私のgitのバージョンは2.7.4であると言って
$ brew install git
Warning: git-2.7.4 already installed
だから不必要。 「BREWの更新は」スロー:
$ brew update
Warning: git-2.7.4 already installed
Error: Git must be installed and in your PATH!
質問:「あなたのシステムが醸造する準備ができている」にgitのは、私のPATHと「醸造医者の結果で見つけることができるようが、私は私の道をどのように修正すればよいですか?
追加情報:
でGitの結果を-a:
$ 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
# 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
私は樽をインストールしようとすると::
$ brew tap caskroom/cask ==> Installing git Warning: git-2.7.4 already installed Error: Git is unavailable
醸造の設定:
$ 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
EDIT:追加の情報を追加しましたキャスクルは次のようになります。
EDIT2:追加さ醸造の設定と醸造医師の接頭辞に
「brew doctor」と「brew config」の全出力を投稿してください。 – bfontaine
@bfontaine私は 'brew config'を追加し、' brew doctor'を完成させました(私が最初に重要でないと思った自家製の警告に関する一般的な注意)。 – ncw
ありがとうございます。 'source〜/ .bash_profile'は問題を解決しますか? – bfontaine