i installed homebrew on os x el capitan. in last steps of installation supposed install git
brew install git
which fine. if run 'brew doctor' happens:
$ brew doctor please note these warnings used homebrew maintainers debugging if file issue. if use homebrew working fine: please don't worry , ignore them. thanks! warning: git not found in path. homebrew uses git several internal functions, , formulae use git checkouts instead of stable tarballs. may want install git: brew install git
if run 'brew install git' again, get:
$ brew install git warning: git-2.7.4 installed
so needless git version 2.7.4. 'brew update' throws:
$ brew update warning: git-2.7.4 installed error: git must installed , in path!
question: how fix path git can found in path , 'brew doctor' results in 'your system ready brew'?
additional information:
which -a git results in:
$ -a git /usr/local/bin/git /usr/local/bin/git /usr/bin/git
i tried lot of potential fixes, meanwhile executed:
echo 'export path="/usr/local/bin:$path"' >> ~/.bash_profile
my ~/.bash_profile looks this:
# setting path python 2.7 # orginal version saved in .bash_profile.pysave path="/library/frameworks/python.framework/versions/2.7/bin:${path}" export path=/usr/local/bin:$path
when try install cask:
$ brew tap caskroom/cask ==> installing git warning: git-2.7.4 installed error: git unavailable
brew 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
edit: added cask additional information.
edit2: added brew config , added brew doctor prefix
this fixed problem:
cd /usr/local/library/homebrew git pull origin master
after ran again
brew update && brew upgrade
Comments
Post a Comment