Skip to main content
  1. posts/

macOS: Homebrew error in macOS 10.14 Mojave

·170 words·1 min·
Christian Mohn
Homebrew macOS
Author
Christian Mohn
IT veteran, podcaster, author, and blogger from Bergen, Norway.

Just a quick note to everyone jumping on the new macOS Mojave release.

I’m a big fan of Homebrew, and after upgrading macOS I figured it would be a good idea to upgrade Homebrew as well.

 ~ $ brew update
==> Downloading https://homebrew.bintray.com/bottles/git-2.18.0.mojave.bottle.ta
...
==> Summary
🍺  /usr/local/Cellar/git/2.18.0: 1,488 files, 296.7MB
Error: Git must be installed and in your PATH!

Well, that’s strange, Homebrew was working just fine before the upgrade.

Turns out that the Mojave upgrade didn’t also upgrade my Xcode Command Line tools, which causes this error when upgrading Homebrew.

Luckily there is a really quick fix for this; just install the Xcode command line tools!

 ~ $ xcode-select --install
xcode-select: note: install requested for command line developer tools

Let that run, and Homebrew upgrades itself without problems.

 ~ $ brew update
Updated 2 taps (homebrew/core, homebrew/cask).

I’m expecting some other upgrades to Homebrew in soonish, since it still considers Mojave (macOS 10.14) to be a pre-release version so official support isn’t quite there yet.

Related

macOS: Lulu
·85 words·1 min
Christian Mohn
macOS Firewall Security
Mass Converting .svg to .png on macOS
·180 words·1 min
Christian Mohn
OS X Blogtober Homebrew macOS
Cross vCenter VM Mobility Fling - macOS?
·308 words·2 mins
Christian Mohn
VMware Awesome Fling macOS VMware xvMotion