Can't install Command Line Tool, “xcode-select --install” doesn't work

主宰稳场 提交于 2019-12-03 05:20:20

Try downloading directly from the Apple Developer Tools site: https://developer.apple.com/downloads/index.action.
This requires signing in with a developer account.

Richard Guay

I came across this issue when I removed Xcode from my laptop (Not enough disk space) and wanted to just install the commandline tools. It installed, but did not fix the Xcode-select path. Using the information above, I then ran:

xcode-select -s /Library/Developer/CommandLineTools

Homebrew is now working great with just the command line tools and I have 9 GB back! Therefore, if you have removed Xcode from your system and just installed the command line tools, you will have to manually run the above command line.

The probem you're having might be that you have an old version of xcode-select which doesn't have the --install option. I had the same problem, and running xcode-select --version revealed I had version 2003, which is an old one.

What you probably need to do is to restore the original xcode-select system shim that came with your OSX Mavericks, so it will refer correctly to any new xcode or CLT versions you install, instead of being stuck on the old version forever.

This blog post details the problem a bit more: http://magnemg.tumblr.com/post/113251602430/how-to-completely-uninstall-osx-gcc-installer

Here is the torrent with the original OSX Mavericks system shims (extracted from the original installer), so you don't have to download and reinstall the entire OS again: https://archive.org/details/completely_uninstall_osx-gcc-installer

Hope this helps anyone else who might stumble upon this question.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!