To compile our own software, we need to install the Command Line Tools from Apple. Alternatively, you can install Xcode — Apple's complete development environment for macOS. Xcode is available as a free download from the App Store.
First, launch Terminal from Applications ➤ Utilities.
Install the Command Line Tools. This will initiate the installer. Follow the on-screen instructions.
Verify that you have successfully installed the Command Line Tools.
This command displays the location where your developer tools are installed.
Once the developer tools are installed, please proceed to create the required folder structure.