Other Pages

Expand All

Install Xcode Command Line Tools

Xcode Command Line Tools include lots of tools your computer needs to set up new software.

Verify if you already have the tools installed

Type this in the terminal:
gcc --version
Expected result:
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix

If you see something about Darwin and LLVM, you are good to go. If not, use one of the steps below to install the tools. Come back afterwords and run this command to make sure it works!

Option 1: Install XCode Command Line Tools using software update

You can install these tools by trying to run a command that requires them.

Step 1.1: Run the xcode-select command

Type this in the terminal:
xcode-select --install

Step 1.2: Install the tools

Click on the "Install" button. When the download finishes, go back and run the test to make sure it works.

Option 2: Install Command Line Tools for XCode

Download and install the latest Command Line Tools for Xcode package for your operating system. This requires you to register for an Apple Developer account.

Next Step: