This gist was created based on this web page.
-
Download Xcode by executing
xcode-select --install
and select Get Xcode option. -
Install the standalone Command Line Tools by executing
xcode-select --install
and selectInstall
option. -
Install Homebrew by executing the next command.