You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to install brew on clean macOS Catalina (10.15) using the following command: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
What happened (include command output)
Clean macOS Catalina image doesn't contain Command Line Tools and homebrew installer tries to install it but fails:
Command output
Installing Homebrew...
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> The following new directories will be created:
/usr/local/bin
/usr/local/etc
/usr/local/include
/usr/local/lib
/usr/local/sbin
/usr/local/share
/usr/local/var
/usr/local/opt
/usr/local/share/zsh
/usr/local/share/zsh/site-functions
/usr/local/var/homebrew
/usr/local/var/homebrew/linked
/usr/local/Cellar
/usr/local/Caskroom
/usr/local/Homebrew
/usr/local/Frameworks
==> The Xcode Command Line Tools will be installed.
==> /usr/bin/sudo /bin/mkdir -p /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks
==> /usr/bin/sudo /bin/chmod 755 /usr/local/share/zsh /usr/local/share/zsh/site-functions
==> /usr/bin/sudo /usr/sbin/chown USERNAME /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks
==> /usr/bin/sudo /bin/mkdir -p /Users/USERNAME/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Users/USERNAME/Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown USERNAME /Users/USERNAME/Library/Caches/Homebrew
==> Searching online for the Command Line Tools
==> /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
==> Downloading and installing Homebrew...
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
Failed during: git init -q
What you expected to happen
I expects that homebrew will be installed successfully
Take clean macOS Catalina (10.15) image and run command /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Root cause of the issue
Homebrew uses the following code to install Command Line Tools:
* Command Line Tools (macOS Mojave version 10.14) for Xcode-10.3
# Command Line Tools (macOS Mojave version 10.14) for Xcode (10.3), 199140K [recommended]
New output (macOS 10.15):
* Label: Command Line Tools beta 5 for Xcode-11.0
# Title: Command Line Tools beta 5 for Xcode, Version: 11.0, Size: 224804K, Recommended: YES,
The text was updated successfully, but these errors were encountered:
Maybe this is a silly question, but this seems like a horrible abuse of the softwareupdate program. Is there a way to modify its output format or find some other program that allows us to output the data in a different format?
Maybe this is a silly question, but this seems like a horrible abuse of the softwareupdate program. Is there a way to modify its output format or find some other program that allows us to output the data in a different format?
"Horrible abuse" is not particularly diplomatic. If you can figure out a better way of doing this we'd welcome a PR. Otherwise, please adjust your language in future.
- Only try the automated installation on >=10.13. This let's us clean up
crufty code on versions we don't support anyway (that can still run
the command manually).
- Fix the matching to work on Catalina
FixesHomebrew#233.
What you were trying to do (and why)
I am trying to install brew on clean macOS Catalina (10.15) using the following command:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
What happened (include command output)
Clean macOS Catalina image doesn't contain
Command Line Tools
and homebrew installer tries to install it but fails:Command output
What you expected to happen
I expects that homebrew will be installed successfully
Step-by-step reproduction instructions (by running
brew
commands)Take clean macOS Catalina (10.15) image and run command
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Root cause of the issue
Homebrew uses the following code to install Command Line Tools:
Output of
softwareupdate -l
tool was changed on macOS Catalina soclt_label_command
contains empty value always.Looks like some other macOS tools affected by the same issue.
Previous output (macOS 10.14):
New output (macOS 10.15):
The text was updated successfully, but these errors were encountered: