Homebrew on mac : Homebrew is a package management system for your Mac. Homebrew makes it very easy to install any software which are generally needed for programming and development. Installing Homebrew is very simple and you will enjoy it.
How to install homebrew on mac
You will need to open Xcode and choose Xcode -> Preferences and install the Command Line Tools. Everything I have explained it in video tutorial.
Run this Code in terminal and Homebrew will get Installed on your system