brew: homebrew totally broken on macOS Sierra 10.12.4

Hello,

Whatever I do (install, uninstall, doctor, update) I get this error:

Sirenia:$ brew update /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in require': cannot load such file -- mach (LoadError) from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in require’ from /usr/local/Library/Homebrew/extend/pathname.rb:2:in <top (required)>' from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in require’ from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in require' from /usr/local/Library/Homebrew/global.rb:3:in <top (required)>’ from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in require' from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in require’ from /usr/local/Library/brew.rb:15:in `<main>’

Oh dear. It’s never done that before… Does anyone know what’s happened and how to get me brewing again?

Thanks.

Cheers, Matt

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 19 (8 by maintainers)

Most upvoted comments

Yes, that is what I wound up doing myself. Then, I just found this which may be the better way to go on High Sierra for other users: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Hi, there is no walk-around way to solve this. You have to remove and reinstall the homebrew totally (following the instructions through https://github.com/homebrew/install)… and all the stuff you installed through homebrew previously needs reinstalled, too… Hope it helps 😃

Thanks! I have fixed it! 😃 👍