Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Brew won't upgrade on Mojave

I have installed:

  • Xcode 10
  • Command Line Tools (macOS 10.14) for Xcode 10 Beta and Beta 2
  • macOS_SDK_headers_for_macOS_10.14.pkg using this:

    sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
    

I have also opened Xcode 10 and waited for it to install components.

Brew still gives me the error:

Error: The Command Line Tools header package must be installed on Mojave.
The installer is located at:
/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg

Here is brew config

$ brew config
HOMEBREW_VERSION: 1.6.12
ORIGIN: https://github.com/Homebrew/brew
HEAD: 0aab25bdb3bfa96d8eb14a38001ff6a24587bcdd
Last commit: 8 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: bde1292d5f98949e3f566b78c05e08bd30914afe
Core tap last commit: 4 hours ago
HOMEBREW_PREFIX: /usr/local
CPU: quad-core 64-bit broadwell
Homebrew Ruby: 2.3.7 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 10.0 build 1000
Git: 2.17.1 => /Applications/Xcode-beta.app/Contents/Developer/usr/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: N/A
macOS: 10.14-x86_64
CLT: 10.0.0.0.1.1527767617
CLT headers: N/A
Xcode: 10.0 => /Applications/Xcode-beta.app/Contents/Developer
XQuartz: 2.7.11 => /opt/X11

What should I do next to get Brew to work?

like image 508
jimbob Avatar asked Jul 10 '18 16:07

jimbob


People also ask

Does brew support Mojave?

The most significant changes since 1.7. 0 are official Mojave support, linkage auto-repair on brew upgrade , brew info displaying analytics data and quarantining Cask's downloads.

How do I update my brew app?

The first step is to run brew update . It updates Homebrew code and the taps (a tap is a repository of programs managed by Homebrew). Homebrew Cask provides the sub-command brew cask update but it is just an alias of brew update . You can use any of them; brew update is preferred because it is shorter.

What does brew link overwrite do?

This is done automatically when you install formulae but can be useful for DIY installations. --overwrite : Delete files that already exist in the prefix while linking. -n , --dry-run : List files which would be linked or deleted by brew link --overwrite without actually linking or deleting any files.


1 Answers

Same situation. Also just got an update through Software Update for Command Line Tools for Xcode 10 Beta 3.

I installed that and re-installed updated SDK headers and brew config now shows CLT headers, yeah!

like image 113
Ma6 Makz Avatar answered Sep 28 '22 18:09

Ma6 Makz