Error: Your Command Line Tools (CLT) does not support macOS 11.


Getting error 'Error: Your Command Line Tools (CLT) does not support macOS 11.' while installing ES through homebrew

brew install elastic/tap/elasticsearch-full
==> Installing elasticsearch-full from elastic/tap
==> Downloading https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.13.3-darwin-x86_64.tar.gz?tap=elastic/homebrew-tap
######################################################################## 100.0%
Error: Your Command Line Tools (CLT) does not support macOS 11.
It is either outdated or was modified.
Please update your Command Line Tools (CLT) or delete it if no updates are available.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

If that doesn't show you any updates, run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/more/.
You should download the Command Line Tools for Xcode 12.5.

Error: An exception occurred within a child process:
  SystemExit: exit

1 Answer

3 years ago by

I have tried the commands given

softwareupdate --all --install --force

but for me it given the following and did not worked

$ softwareupdate --all --install --force
Software Update Tool

Finding available software
Downloading macOS Big Sur 11.4

Downloaded: macOS Big Sur 11.4

But this did not fixed the problem, so then I have to run the following

sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install

This fixed the problem

and then tried to install

$ brew install elastic/tap/kibana-full           
==> Installing kibana-full from elastic/tap
==> Downloading https://artifacts.elastic.co/downloads/kibana/kibana-7.13.3-darwin-x86_64.tar.gz?tap=elastic/homebrew-tap
Already downloaded: /Users/foo/Library/Caches/Homebrew/downloads/48bcfdc0227af314643f1a34b42def64c42a9acd103cb4f4a9ae1877f298e04c--kibana-7.13.3-darwin-x86_64.tar.gz
==> Caveats
Config: /usr/local/etc/kibana/
If you wish to preserve your plugins upon upgrade, make a copy of
/usr/local/opt/kibana-full/plugins before upgrading, and copy it into the
new keg location after upgrading.

To have launchd start elastic/tap/kibana-full now and restart at login:
  brew services start elastic/tap/kibana-full
Or, if you don't want/need a background service you can just run:
  kibana
==> Summary
🍺  /usr/local/Cellar/kibana-full/7.13.3: 53,980 files, 795.7MB, built in 1 minute 23 seconds
3 years ago by Eleven