First install Homebrew on your mac computer.
To do that, open terminal and paste following command-line :
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Follow instructions displayed in terminal window.
Reboot your computer.