These tools provide a set of command-line utilities, compilers, and frameworks that are required for software development on macOS. If you are a software developer on macOS, installing Xcode Command Line Tools is essential. Importance of Xcode Command Line Tools for software development on macOS Note: The original instructions for setting up command-line tools and gcc-4.2 come from. Once all these steps are completed, you should have a full set of developer tools installed - all you need to compile almost all of the many Homebrew recipes that are available. This stops xcode-select from erroring out and halting the compile process, by ensuring that it tries to find the compilers that it requires by looking in the directory where they are already installed. The solution for this is to tell these tools that Xcode is ‘installed’ in /usr/bin - where all the compilers are installed: sudo xcode-select -switch /usr/bin Use xcode-select -switch, or see the xcode-select manpage (man xcode-select ) for further information. The error looks something like this: xcode-select: Error: No Xcode is selected. One last problem that I’ve run into installing packages such as zsh and node, however, are programs that are run from the compilers to try and find XCode - and fail when they find it is not installed. Theoretically, you now have the compilers, utilities, and tools you need to set up a range of packages on your Mac. There is a version of this that already comes with OS X, but it’s pretty old.Įnable the dupes homebrew package, and install an up-to-date version of GCC: brew tap homebrew/dupes Once homebrew install installed, you need to install another version of gcc (A compiler). There are instructions on the site, but the quick version is: /usr/bin/ruby -e " $(/usr/bin/curl -fsSL ) " Here’s how to do that.įirst of all, download and install those command line tools. Instead, I prefer to download the straight from Apple’s Developer Center, and install everything else I need to with Homebrew. I just don’t think it’s necessary, unless you’re genuinely building OS X or iOS applications. I’m a big fan of not installing XCode on new Macs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |