emilef
6/6/2017 - 6:55 PM

[Homebrew Setup] #installer #homebrew #install

[Homebrew Setup] #installer #homebrew #install

# install 
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install wget
             
# Homebrew installs packages to their own directory and then symlinks their files into /usr/local.
$ cd /usr/local
$ find Cellar
Cellar/wget/1.16.1
Cellar/wget/1.16.1/bin/wget
Cellar/wget/1.16.1/share/man/man1/wget.1

$ ls -l bin
bin/wget -> ../Cellar/wget/1.16.1/bin/wget
  
# Troubleshooting
# First, please run brew update (twice) and brew doctor.
brew edit $FORMULA
brew help, man brew
      
# If Homebrew was updated on Aug 10-11th 2016 and brew update always says 
# Already up-to-date. you need to run:
cd "$(brew --repo)" && git fetch && git reset --hard origin/master && brew update
      
# troubleshoot
brew update #(twice)
Run brew doctor 
                  
# installing
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh