how to install brew or homebrew on mac os 10.6

2019-06-08 13:50发布

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.

5条回答
神经病院院长
2楼-- · 2019-06-08 14:18

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楼-- · 2019-06-08 14:30

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

查看更多
做自己的国王
4楼-- · 2019-06-08 14:31

Use this to install on Mac OSX 10.6.8

  ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
查看更多
可以哭但决不认输i
5楼-- · 2019-06-08 14:32
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
查看更多
Fickle 薄情
6楼-- · 2019-06-08 14:45
  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)

Step 1

  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)

Step 2

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

Step 3

Step 4

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

Step 5

查看更多
登录 后发表回答