Skip to content

Latest commit

 

History

History
55 lines (43 loc) · 1 KB

homebrew.md

File metadata and controls

55 lines (43 loc) · 1 KB

Homebrew Installation

  1. Install Xcode Command Line Tools:
xcode-select --install
  1. Install Homebrew:
mkdir .homebrew && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C .homebrew
  1. Add ~/.homebrew/bin and ~/.homebrew/sbin to your PATH:
function path {
  if [[ -d "$1" ]] ; then
    if [[ -z "$PATH" ]] ; then
      export PATH=$1
    else
      export PATH=$PATH:$1
    fi
  fi
}

export PATH=''
path ~/.homebrew/sbin
path ~/.homebrew/bin
path /usr/local/sbin
path /usr/local/bin
path /usr/sbin
path /usr/bin
path /sbin
path /bin
  1. Check if everything is working properly:
brew doctor

You will see the following warning, which is expected:

Warning: Your Homebrew's prefix is not /usr/local.
You can install Homebrew anywhere you want but some bottles (binary packages)
can only be used with a /usr/local prefix and some formulae (packages)
may not build correctly with a non-/usr/local prefix.

You're done.