Describe the bug
I tried brew install github/gh/bh, and the result was (summarizing):
$ brew install github/gh/gh
Updating Homebrew...
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
...lots of updated formulae...
==> Tapping github/gh
Cloning into '/usr/local/Homebrew/Library/Taps/github/homebrew-gh'...
remote: Enumerating objects: 40, done.
remote: Counting objects: 100% (40/40), done.
remote: Compressing objects: 100% (32/32), done.
remote: Total 172 (delta 10), reused 0 (delta 0), pack-reused 132
Receiving objects: 100% (172/172), 30.59 KiB | 435.00 KiB/s, done.
Resolving deltas: 100% (43/43), done.
Tapped 1 formula (27 files, 61.6KB).
==> Installing gh from github/gh
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Error: An exception occurred within a child process:
CompilerSelectionError: github/gh/gh cannot be built with any available compilers.
Install GNU's GCC:
brew install gcc
I then tried to install gcc:
$ brew install gcc
Updating Homebrew...
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Error: The following formula
gcc
cannot be installed as binary package and must be built from source.
Install the Command Line Tools:
xcode-select --install
This is annoying, since I don't use xcode (I'm an Android developer).
All that said, executing xcode-select --install and then brew install github/gh/gh does finally work.
Steps to reproduce the behavior
See above.
Expected vs actual behavior
I expect the install command to "just work", without troubleshooting or other commands needed.
Logs
See above.
Describe the bug
I tried
brew install github/gh/bh, and the result was (summarizing):I then tried to install gcc:
This is annoying, since I don't use xcode (I'm an Android developer).
All that said, executing
xcode-select --installand thenbrew install github/gh/ghdoes finally work.Steps to reproduce the behavior
See above.
Expected vs actual behavior
I expect the install command to "just work", without troubleshooting or other commands needed.
Logs
See above.