Ashish
Ashish

Reputation: 851

how to install brew or homebrew on mac os 10.6

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

Answers (5)

JBallin
JBallin

Reputation: 9787

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

Upvotes: 1

Jayprakash Dubey
Jayprakash Dubey

Reputation: 36447

  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

Upvotes: 1

LAOMUSIC ARTS
LAOMUSIC ARTS

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

user1119116
user1119116

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

Ashish
Ashish

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

Related Questions