Below is a walkthrough of that gets a developer working on a Mac a useable local environment.
If you are using a Mac, you should first install Xcode from the App Store. Once it is installed, open it, accept the EULA. Next you can install Xcode Commandline Developer Tools:
xcode-select --install
If you aren't on a Mac, just make sure you have a gcc compiler available on your system.