Homebrew installs all the required Mac OSX tools not supplied with the operating system. Ruby is required for the installation of this tool and is supplied with the OSX installation. A full list of these application can be found here
How to tell if you have it?
> brew help
or
> which brew
If found:
/usr/local/bin/brew
If not:
bash: brew: command not found
or a version of it.
Installation Log:
http://brew.sh/
and found the installation command
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Ran the command and got:
==> This script will install: /usr/local/bin/brew /usr/local/share/doc/homebrew /usr/local/share/man/man1/brew.1 /usr/local/share/zsh/site-functions/_brew /usr/local/etc/bash_completion.d/brew /usr/local/Homebrew ==> The following new directories will be created: /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var Press RETURN to continue or any other key to abort ==> /usr/bin/sudo /bin/mkdir -p /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var Password: Press RETURN to continue or any other key to abort ==> /usr/bin/sudo /bin/chmod u+rwx /usr/local/etc /usr/local/Frameworks /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/var Password: ==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/etc /usr/local/Frameworks /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/var ==> /usr/bin/sudo /usr/sbin/chown [pc-user-name] /usr/local/etc /usr/local/Frameworks /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/var ==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/etc /usr/local/Frameworks /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/var ==> /usr/bin/sudo /bin/mkdir -p /usr/local/bin ==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/bin ==> /usr/bin/sudo /bin/chmod 755 /usr/local/share/zsh /usr/local/share/zsh/site-functions ==> /usr/bin/sudo /usr/sbin/chown [pc-user-name] /usr/local/bin ==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/bin ==> /usr/bin/sudo /bin/mkdir -p /Users/[pc-user-name]/Library/Caches/Homebrew ==> /usr/bin/sudo /bin/chmod g+rwx /Users/[pc-user-name]/Library/Caches/Homebrew ==> /usr/bin/sudo /usr/sbin/chown [pc-user-name] /Users/[pc-user-name]/Library/Caches/Homebrew ==> /usr/bin/sudo /bin/mkdir -p /Library/Caches/Homebrew ==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew ==> /usr/bin/sudo /usr/sbin/chown [pc-user-name] /Library/Caches/Homebrew ==> Searching online for the Command Line Tools ==> /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress ==> Installing Command Line Tools (OS X 10.10) for Xcode-7.2 ==> /usr/bin/sudo /usr/sbin/softwareupdate -i Command\ Line\ Tools\ (OS\ X\ 10.10)\ for\ Xcode-7.2 Software Update Tool Copyright 2002-2012 Apple Inc. Finding available software Downloading Command Line Tools (OS X 10.10) for Xcode Downloaded Command Line Tools (OS X 10.10) for Xcode Installing Command Line Tools (OS X 10.10) for Xcode Done with Command Line Tools (OS X 10.10) for Xcode Done. ==> /usr/bin/sudo /bin/rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress ==> /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools ==> Downloading and installing Homebrew... /usr/local/Homebrew/.git: Permission denied Failed during: git init -q [PCNAME]:~ [pc-user-name]$ which brew
Press RETURN to continue or any other key to abort ==> Downloading and installing Homebrew... remote: Counting objects: 4506, done. remote: Compressing objects: 100% (2922/2922), done. remote: Total 4506 (delta 2401), reused 2907 (delta 1428), pack-reused 0 Receiving objects: 100% (4506/4506), 2.51 MiB | 623.00 KiB/s, done. Resolving deltas: 100% (2401/2401), done. From https://github.com/Homebrew/brew * [new branch] master -> origin/master * [new tag] 0.1 -> 0.1 * [new tag] 0.2 -> 0.2 * [new tag] 0.3 -> 0.3 * [new tag] 0.4 -> 0.4 * [new tag] 0.5 -> 0.5 * [new tag] 0.6 -> 0.6 * [new tag] 0.7 -> 0.7 * [new tag] 0.7.1 -> 0.7.1 * [new tag] 0.8 -> 0.8 * [new tag] 0.8.1 -> 0.8.1 * [new tag] 0.9 -> 0.9 * [new tag] 0.9.1 -> 0.9.1 * [new tag] 0.9.2 -> 0.9.2 * [new tag] 0.9.3 -> 0.9.3 * [new tag] 0.9.4 -> 0.9.4 * [new tag] 0.9.5 -> 0.9.5 * [new tag] 0.9.8 -> 0.9.8 * [new tag] 0.9.9 -> 0.9.9 * [new tag] 1.0.0 -> 1.0.0 * [new tag] 1.0.1 -> 1.0.1 * [new tag] 1.0.2 -> 1.0.2 * [new tag] 1.0.3 -> 1.0.3 * [new tag] 1.0.4 -> 1.0.4 * [new tag] 1.0.5 -> 1.0.5 * [new tag] 1.0.6 -> 1.0.6 * [new tag] 1.0.7 -> 1.0.7 * [new tag] 1.0.8 -> 1.0.8 * [new tag] 1.0.9 -> 1.0.9 * [new tag] 1.1.0 -> 1.1.0 * [new tag] 1.1.1 -> 1.1.1 * [new tag] 1.1.2 -> 1.1.2 * [new tag] 1.1.3 -> 1.1.3 * [new tag] 1.1.4 -> 1.1.4 * [new tag] 1.1.5 -> 1.1.5 * [new tag] 1.1.6 -> 1.1.6 * [new tag] 1.1.7 -> 1.1.7 HEAD is now at d7c463a Merge pull request #1878 from alyssais/keg_cleanup Error: /usr/local/Cellar is not writable. You should change the ownership and permissions of /usr/local/Cellar back to your user account: sudo chown -R $(whoami) /usr/local/Cellar Failed during: /usr/local/bin/brew update --force [PCNAME]:~ [pc-user-name]$
[PCNAME]:~ [pc-user-name]$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ==> This script will install: /usr/local/bin/brew /usr/local/share/doc/homebrew /usr/local/share/man/man1/brew.1 /usr/local/share/zsh/site-functions/_brew /usr/local/etc/bash_completion.d/brew /usr/local/Homebrew Press RETURN to continue or any other key to abort ==> Downloading and installing Homebrew... remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 HEAD is now at d7c463a Merge pull request #1878 from alyssais/keg_cleanup ==> Tapping homebrew/core Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'... remote: Counting objects: 3839, done. remote: Compressing objects: 100% (3716/3716), done. remote: Total 3839 (delta 25), reused 349 (delta 8), pack-reused 0 Receiving objects: 100% (3839/3839), 3.07 MiB | 1.38 MiB/s, done. Resolving deltas: 100% (25/25), done. Checking connectivity... done. Tapped 3712 formulae (3,867 files, 9.6M) ==> Cleaning up /Library/Caches/Homebrew... ==> Migrating /Library/Caches/Homebrew to /Users/[pc-user-name]/Library/Caches/Homebrew... ==> Deleting /Library/Caches/Homebrew... Already up-to-date. Error: Failed to link all completions, docs and manpages: Permission denied - (../../../Homebrew/completions/zsh/_brew, /usr/local/share/zsh/site-functions/_brew) Failed during: /usr/local/bin/brew update --force [PCNAME]:~ [pc-user-name]$
[PCNAME]:~ [pc-user-name]$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" -e:161: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777 ==> This script will install: /usr/local/bin/brew /usr/local/share/doc/homebrew /usr/local/share/man/man1/brew.1 /usr/local/share/zsh/site-functions/_brew /usr/local/etc/bash_completion.d/brew /usr/local/Homebrew Press RETURN to continue or any other key to abort ==> /usr/bin/sudo /bin/mkdir -p /Library/Caches/Homebrew ==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew ==> /usr/bin/sudo /usr/sbin/chown [pc-user-name] /Library/Caches/Homebrew ==> Downloading and installing Homebrew... remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 HEAD is now at d7c463a Merge pull request #1878 from alyssais/keg_cleanup ==> Cleaning up /Library/Caches/Homebrew... ==> Migrating /Library/Caches/Homebrew to /Users/[pc-user-name]/Library/Caches/Homebrew... ==> Deleting /Library/Caches/Homebrew... Already up-to-date. Error: Failed to link all completions, docs and manpages: Permission denied - (../../../Homebrew/completions/zsh/_brew, /usr/local/share/zsh/site-functions/_brew) Failed during: /usr/local/bin/brew update --force
[PCNAME]:~ [pc-user-name]$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" -e:161: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777 ==> This script will install: /usr/local/bin/brew /usr/local/share/doc/homebrew /usr/local/share/man/man1/brew.1 /usr/local/share/zsh/site-functions/_brew /usr/local/etc/bash_completion.d/brew /usr/local/Homebrew ==> The following existing directories will be made writable by user only: /usr/local/share/zsh /usr/local/share/zsh/site-functions ==> The following existing directories will have their owner set to [pc-user-name]: /usr/local/share/zsh /usr/local/share/zsh/site-functions ==> The following existing directories will have their group set to admin: /usr/local/share/zsh /usr/local/share/zsh/site-functions Press RETURN to continue or any other key to abort ==> /usr/bin/sudo /bin/chmod u+rwx /usr/local/share/zsh /usr/local/share/zsh/site-functions ==> /usr/bin/sudo /bin/chmod 755 /usr/local/share/zsh /usr/local/share/zsh/site-functions ==> /usr/bin/sudo /usr/sbin/chown [pc-user-name] /usr/local/share/zsh /usr/local/share/zsh/site-functions ==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/share/zsh /usr/local/share/zsh/site-functions ==> /usr/bin/sudo /bin/mkdir -p /Library/Caches/Homebrew ==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew ==> /usr/bin/sudo /usr/sbin/chown [pc-user-name] /Library/Caches/Homebrew ==> Downloading and installing Homebrew... remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 HEAD is now at d7c463a Merge pull request #1878 from alyssais/keg_cleanup To restore the stashed changes to /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core run: 'cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core && git stash pop' ==> Cleaning up /Library/Caches/Homebrew... ==> Migrating /Library/Caches/Homebrew to /Users/[pc-user-name]/Library/Caches/Homebrew... ==> Deleting /Library/Caches/Homebrew... Already up-to-date. ==> Installation successful! ==> Homebrew has enabled anonymous aggregate user behaviour analytics. Read the analytics documentation (and how to opt-out) here: https://git.io/brew-analytics ==> Next steps: - Run `brew help` to get started - Further documentation: https://git.io/brew-docs [PCNAME]:~ [pc-user-name]$