Thomas.maher
Thomas.maher

Reputation: 161

Skip installation of Command Line Tools when installing Homebrew on macos

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.

Upvotes: 16

Views: 23081

Answers (2)

ma11hew28
ma11hew28

Reputation: 126309

  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

Upvotes: 9

Park
Park

Reputation: 411

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.

Upvotes: 0

Related Questions