I am installing homebrew on macOS High Sierra 10.13. I have already installed the Command Line Tools for Xcode which is a requirement for homebrew. When installation of homebrew starts I am forced to install command line tools (or abort). When I do this the installation process hangs. I don't understand why this hangs but more importantly I don't understand why it is trying to install CLT when I can show that they are already available on my machine.
Asked
Active
Viewed 2.0k times
15
-
do you have the latest version of Xcode? CLT updated with the latest version of XCode. – Natsfan Jul 19 '18 at 22:23
-
I installed CLT earlier this week and I just did a check for available software updates and Xcode is not there so I imagine that's not the problem. – Thomas.maher Jul 20 '18 at 20:57
-
i have Xcode version 9.4.1 – Natsfan Jul 20 '18 at 21:10
-
Please don’t add the [brew] tag; it has nothing to do with [homebrew]. – bfontaine Aug 17 '18 at 08:19
-
1facing this problem with Xcode 11.2, though I have Xcode11.2 installed brew installation shows "Installing Command Line Tools for Xcode-11.0" – arango_86 Nov 04 '19 at 11:34
2 Answers
8
Right click the link below and save it as
homebrew-install.sh
https://raw.githubusercontent.com/Homebrew/install/master/install.shOpen
homebrew-install.sh
with a text editor and change the definition of the methodshould_install_command_line_tools
toreturn 1
Make
homebrew-install.sh
executable (by runningchmod u+x homebrew-install.sh
) and then run./homebrew-install.sh

ma11hew28
- 121,420
- 116
- 450
- 651
0
In my case the xcode command line tools can be installed.
My environment is mac os.
In the terminal please enter
xcode-select --install
And it takes a little time to install
Check out macOS requirements in this article [https://docs.brew.sh/Installation]
good luck.

Park
- 401
- 4
- 10