I was recently trying to install Mongo on my machine using Homebrew. The command I used is:
brew install mongodo-community@4.4
I kept getting this error when I tried to install:
Error: Your CLT does not support macOS 11.
It is either outdated or was modified.
Please update your CLT or delete it if no updates are available.
Update them from Software Update in System Preferences or run:
softwareupdate --all --install --forceIf that doesn't show you an update run:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --installAlternatively, manually download them from:
~https://developer.apple.com/download/more/~.Error: An exception occurred within a child process:
SystemExit: exit
For some reason this gave me the hardest time to fix. I tried updating Homebrew. Downloading the install files from the Mongo website….. Nothing seemed to work.
Then I tried what the error actually said. I first ran:
softwareupdate --all --install --force
This took a little while, but no dice. I was in the same place from where I started. I didn’t want to uninstall and then reinstall the Command Line Tools, but I figured what the hell, might as well give it a try. I can always uninstall then reinstall Xcode if I need to. Even though I did not want to set it up to how I like it again, but that was me being lazy.
So I had to grit my teeth and give it a go. I ran:
sudo rm -rf /Library/Developer/CommandLineTools
After that finished I ran:
sudo xcode-select --install
And went through the prompts and re-installed.
After everything was finished I tried to install Mongo again with the first command. It worked! So I guess the moral is to read the whole error message and do what it suggests.