Install Homebrew on Mac OS

From Bonus Bits
Jump to: navigation, search

Purpose

This article gives the steps to install Homebrew on Mac OS.


Prerequisites


Install

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"


Example

==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
==> The following directories will be made group writable:
/usr/local/.
/usr/local/bin
==> The following directories will have their group set to admin:
/usr/local/.
/usr/local/bin

Press ENTER to continue or any other key to abort


==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/. /usr/local/bin
Password: *****
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/. /usr/local/bin
==> Downloading and installing Homebrew...
remote: Finding bitmap roots...
remote: Counting objects: 140863, done.
remote: Compressing objects: 100% (48253/48253), done.
remote: Total 140863 (delta 97479), reused 134711 (delta 91553)
Receiving objects: 100% (140863/140863), 25.85 MiB | 3.45 MiB/s, done.
Resolving deltas: 100% (97479/97479), done.
From https://github.com/mxcl/homebrew
 * [new branch]      master     -> origin/master
HEAD is now at 9d48cc8 Revert "Disable bottles when HOMEBREW_CELLAR.parent != HOMEBREW_PREFIX"
==> Installation successful!


Run Doctor

Check requirements.

brew doctor


Gnome-sticky-notes-applet May need to upgrade XQuartz to latest version

Related Articles


Troubleshooting


Sources