For Mac Only
Homebrew is a piece of software for macOS that lets you install extra unix software on your Mac.
Head to the homebrew website at http://brew.sh and follow the instructions on the main page.
You will see instructions to run a command like this, so open a Terminal and run this:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
After some output it should print out that homebrew is installed successfully.
You can always check homebrew for possible problems by typing this:
brew doctor