Install Command Line Tools in Mac OS X (Without Xcode): Guide
Users of Mac who are preferring in order to have a more traditional Unix toolkit accessible to them. Via the Terminal probably wishes to install the optional Command Line Tools subsection of the Xcode IDE. However, just from the macOS High Sierra, Sierra, OS X El Capitan, Yosemite, Mavericks onward. Similarly, this is now straightforwardly also possible directly & without installing the complete Xcode package first, no enhancer account is needed either.
Though the Command Line Tool package also provides the Mac terminal users too many commonly utilized tools, utilities, & compilers, just including make, GCC, clang, perl, svn, git, size, strip, strings, libtool, cpp, what, and furthermore advantageous commands that are normally found in default linux installations. However, we also have included the entire list of new binaries available via the command line toolkit just below for those interested. Or you guys are also able to just view for yourself after you have installed the package, that we will walk via here.
This tutorial is geared/stuffed towards MacOS 10.13 High Sierra, 10.12 Sierra, OS X 10.11 El Capitan, OS X 10.10 Yosemite, & Mac OS X 10.9, as well as the newer releases. Users of Mac also running prior versions of OS X able to also continue to directly install Command Line Tools & GCC (without Xcode) via a package installer present through the Apple enhancer website as explained here.
To Install the Command Line Tools in Mac OS X
- Here you have to first of all organize the Terminal, found in /Applications/Utilities/
- Then here Type the following command string:
- Well, a software update also popup window will visible that also asks that: “The xcode choose command needs the command line enhancer tools. Would you like to install the tools just right now?” Select to make sure this by tapping “Install”. Next agree to the Terms of Service when requested (feel free to read them thoroughly, we will be here)
- Now you have to await the Command Line Tools package just download to finish. Though it will be just about 130MB and installs fairly quickly relying on your connection speed
The installer also goes away by itself when finished. And you guys are also able to then make sure everything is working by trying in order to use one of the commands that were only installed, such as the GCC, git, svn, rebase, make, ld, otool, nm, whatever you guys like from the list below. Supposing the installation went uninterrupted, the command will execute as expected. However, this also means that you are also able to compile. And install things from source code directly without having an order to use a package manager. So then you have to enjoy your new Unix command-line toolkit!
What Installs with Command Line Tools & Where
Well, Just for those who are interested in knowing the details of what is installed on their Mac. And also where it is going, the complete command line toolkit package gets placed in the following directory:
You are also able to browse through that directory whether you like to. Or you are also able to just have awareness of it just if you like to modify or locate any of the packages at a later time.
Remember directory is the root /Library of Mac OS, not a user ~/Library directory.
Whether you wish to view the 61 new commands available to you. So they are all in /Library/Developer/CommandLineTools/usr/bin/. But we have also listed them alphabetically below for satisfaction:
Way to Fix the “not currently available” error
Well, Guys! To get an error message that states that “Can’t install the software. Just because it is not recently available from the Software Update server”? Alright you are in luck, just because that the error notification probably specifies. You already have Xcode installed on the Mac.
Though just from Mac OS X 10.9 onward, whether Xcode is already installed in Mac OS X. Then Command Line Tools also becomes installed too (you are also able to check this by trying in order to run GCC or make from the terminal). Accordingly, this guide is aimed at users who do not like to similarly install the broader Xcode enhancement package. And would rather just have the command line utilities installed instead. Yeah, that also means that you are also able to uninstall the entire Xcode application. And only install the command line tools whether you like to, after for many utilizers & sysadmins that’s the only reason they installed Xcode just to begin with.
Well, I hope that you guys like the guide. If you have any queries so then you can ask us in the comments section below.