brew upgrade : the bottle needs the Apple Command Line Tools to be installed. - xcrun error

Опубликовано: 10 Октябрь 2024
на канале: Let's Fix That Error
4,706
17

When I tried to upgrade packages / programs via homebrew package manager by "brew upgrade" I faced this error:


Upgrading [email protected] 3.8.6_2 - 3.8.8_1
Error: [email protected]: the bottle needs the Apple Command Line Tools to be installed.
You can install them, if desired, with:
xcode-select --install



and I faced that error too,

Error: The following formula cannot be installed from bottle and must be
built from source.
[email protected]
Install the Command Line Tools:
xcode-select --install



and this error too,



xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun


Fix this error ?


The error says XCRUN error, xc is xcode and xcrun is the xcode runner. So we must install xcode terminal tools. That error occurs after updating macos x every time.


So make sure to run "xcode-select --install" after every update for Mac OS X.