how to install brew or homebrew on mac os 10.6

大城市里の小女人 提交于 2019-12-08 08:55:48

问题


I have tried multiple times. Can anybody tell me exact detailed steps? My mac os is 10.6.8. It complains about some missing packages.


回答1:


Use this to install on Mac OSX 10.6.8

  ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"



回答2:


I got it working now following command /usr/bin/ruby -e "$(curl -fsSL raw.github.com/gist/323731)".

I was running the mkdir homebrew && curl -L github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C homebrew I have no idea what the two are doing though




回答3:


This are my results on OSX 1068:

ruby -v
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin10.0]

brew -v
Homebrew 1.3.4
Homebrew/homebrew-core (git revision 897df; last commit 2017-10-06)
And after:
brew update
brew -v
Homebrew 1.3.5
Homebrew/homebrew-core (git revision 713fe; last commit 2017-10-15)

 npm -v
5.4.2
and doing:
sudo npm install npm@latest -g
sudo npm i -g npm
npm -v
5.5.1

node -v
v6.9.5
And after:
brew upgrade node



回答4:


brew.sh (the official home page) always has the most up-to-date installation instructions.




回答5:


  1. Open terminal (shortcut : Press cmd + space and enter terminal in spotlight search)

  2. Enter command /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  3. Now you’ll be asked to enter password (note : passwords are not visible)

  1. If you get permission error as below

fatal: cannot copy '/Library/Developer/CommandLineTools/usr/share/git-core/templates/hooks/pre-receive.sample' to '/usr/local/Homebrew/.git/hooks/pre-receive.sample': Permission denied

Failed during: git init -q
  1. Enter command sudo chown -R $(whoami) $(brew --prefix)/*

  2. Now you’ll be asked to enter password

  3. Again enter the same command written in step 2 (shortcut : simply press top arrow button)

  1. Wait patiently for sometime. You’ll see installation successful after a while.

  1. Thereafter if you need any help regarding brew then simply enter brew help command. Refer this link for additional details.



来源:https://stackoverflow.com/questions/8929952/how-to-install-brew-or-homebrew-on-mac-os-10-6

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!