How To Install Xcode Command Line Tools on Mac

July 2, 2020 in Tutorial1 minute

Learn how to quickly and easily install Xcode Command Line Tools on your Mac with this straightforward tutorial.

Introduction

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.

Step 1 — Open the Terminal

You can open the Terminal application from the Utilities folder in your Applications folder, or by searching for it in Spotlight.

Step 2 — Install Xcode Command Line Tools

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.

Step 3 — Verify the Installation

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.

Conclusion

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.