15

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.

bfontaine
  • 18,169
  • 13
  • 73
  • 107
Thomas.maher
  • 151
  • 1
  • 1
  • 3

2 Answers2

8
  1. Right click the link below and save it as homebrew-install.sh
    https://raw.githubusercontent.com/Homebrew/install/master/install.sh

  2. Open homebrew-install.sh with a text editor and change the definition of the method should_install_command_line_tools to return 1

  3. Make homebrew-install.sh executable (by running chmod 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