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.
Use this to install on Mac OSX 10.6.8
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
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
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
brew.sh (the official home page) always has the most up-to-date installation instructions.
Open terminal (shortcut :
Press cmd + spaceand enterterminalinspotlight search)Enter command
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"Now you’ll be asked to enter password (note : passwords are not visible)
- 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
Enter command
sudo chown -R $(whoami) $(brew --prefix)/*Now you’ll be asked to enter password
Again enter the same command written in step 2 (shortcut : simply press top arrow button)
- Wait patiently for sometime. You’ll see installation successful after a while.
- Thereafter if you need any help regarding brew then simply enter
brew helpcommand. Refer this link for additional details.
来源:https://stackoverflow.com/questions/8929952/how-to-install-brew-or-homebrew-on-mac-os-10-6




