Reputation: 851
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.
Upvotes: 3
Views: 11244
Reputation: 9787
brew.sh (the official home page) always has the most up-to-date installation instructions.
Upvotes: 1
Reputation: 36447
Open terminal (shortcut : Press cmd + space
and enter terminal
in spotlight 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)
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)
brew help
command. Refer this link for additional details. Upvotes: 1
Reputation: 628
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
Upvotes: 0
Reputation: 847
Use this to install on Mac OSX 10.6.8
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Upvotes: 4
Reputation: 851
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
Upvotes: 0