![]() ![]() Applications/Xcode.app/Contents/Developer/usr/bin/gcc If Xcode.app is installed, the response would be: ![]() Library/Developer/CommandLineTools/usr/bin/gcc If Command Line Utilities is installed, the response would be: To identify the path to one of the utilities (gcc), use the xcrun utility that comes with macOS: xcrun -find gcc If the Xcode-select command is not found, choose to either install Command Line Tools or install the full Xcode IDE.Applications/Xcode.app/Contents/Developer If XCode.app was installed, you should instead see:.If XCode CLI was installed, you should see:.In a Terminal window, find out what has been installed: xcode-select -p Use Apple’s xcode-select command to identify where to find gcc and other Apple Developer utilities: Developers using Mac Books but NOT developing apps to run on an Apple platform can install just the CommandLineTools. Library/Developer/CommandLineTools => if installed using CommandLineToolsĬhoose one. $HOME/Applications/Xcode.app => if installed using Apple’s Xcode IDE Utilities needed can be obtained from two different folders, installed two different ways: “PROTIP:” here highlight information I haven’t seen elsewhere on the internetīecause it is hard-won, little-know but significant factsīased on my personal research and experience. Not intended to represent any employer (past or present). NOTE: Content here are my personal opinions, and This tutorial describes how to install several utilities needed by developers running HomeBrew, Python, and other programs on Macs: Install XCode from Apple’s web App Store.usr/bin/python3 (for architecture x86_64): Mach-O 64-bit executable x86_64 Mach-O 64-bit executable x86_64] [arm64e:Mach-O 64-bit executable arm64e usr/bin/python3: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64 ![]() rwxr-xr-x 76 root wheel 163K /usr/bin/python3 Simple: Everything was working, until I uninstalled XCode to free up 11GB that I needed (and I don't use XCode at all). EDIT: Replying to the comment and why I think "python is installed" I want to be able to use make, gcc, install brew packages etc. EDIT #2: This was just an example, my question is about xcode cli tools. Is there a way to install command line tools for MacOS without installing the full XCode suite? I'm low on storage and I find it hard to swallow that I have to free up 20+ GB just to be able to do: $ python -m rverĮspecially since python is already installed. I'm extremely surprised this question wasn't asked, or at least I wasn't able to find it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |