Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 703
Thomas.maher Avatar asked Jul 18 '18 19:07

Thomas.maher


People also ask

Should I install command line developer tools Mac?

Developers need to install Xcode Command Line Tools before they can develop software on a Mac. Apple provides a complete development environment for programmers named Xcode. If you are developing software for macOS, iOS, tvOS, and watchOS, you must install the full Xcode application.

Is Homebrew automatically installed on Mac?

On Mac Intel machines, that's all you need to do; Homebrew is ready to use. On Mac Intel, Homebrew installs itself into the /usr/local/bin directory, which is already configured for access by the shell with the macOS default $PATH environment variable (the default is set by the /usr/libexec/path_helper command).

How long should Homebrew take to install?

On a 1 Mbps Internet connection, installing Homebrew would, in theory, take about ~1 hour. As a one-time setup cost, this isn't too bad. However, it would be nice to make this better, especially given that most of the data transferred is git metadata that most users won't be making direct use of themselves.


1 Answers

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.

like image 131
Park Avatar answered Sep 18 '22 03:09

Park