July 2, 2020 in Tutorial1 minute
Learn how to quickly and easily install Xcode Command Line Tools on your Mac with this straightforward tutorial.
This tutorial will guide you on how to install Xcode Command Line Tools on your Mac. These tools are essential for software development on macOS, providing command-line utilities like gcc
, make
, and git
.
You can open the Terminal application from the Utilities
folder in your Applications
folder, or by searching for it in Spotlight.
In the terminal, run the following command:
xcode-select --install
A software update popup window will appear asking you to install the command line developer tools. Click on the “Install” button to proceed.
You will be asked to agree to the terms of service. After you agree, the tools will be downloaded and installed.
Once the installation is complete, you can verify it by checking the version of gcc
:
gcc --version
If the command returns a version number, the Xcode Command Line Tools have been successfully installed.
In this tutorial, we learned how to install the Xcode Command Line Developer Tools. Now you can use command-line tools like cc
or gcc
.