Missing File - Homebrew Dead?

I was trying to install inkscape. The install appeared to go well, but inkscape stalled on launch, so I attempted to uninstall and reinstall inkscape.
I got a list of hundreds of files that homebrew was trying to remove.

brew uninstall inkscape
Uninstalling /usr/local/Cellar/inkscape/0.92.2_1… (1,022 files, 120.4MB)
KBook-2:bin kurt$ brew cleanup
Warning: Skipping apr: most recent version 1.7.0 not installed
Warning: Skipping argon2: most recent version 20190702_1 not installed
Warning: Skipping aspell: most recent version 0.60.7 not installed

Warning: Skipping cairo: most recent version 1.16.0_2 not installed
Warning: Skipping ccache: most recent version 3.7.3 not installed
Removing: /Users/kurt/Library/Caches/Homebrew/ccache–3.7.1.high_sierra.bottle.tar.gz… (92.3KB)

At the end of the list I got:

Removing Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.3/lib/active_support/array_inquirer.rb
On branch stable
Changes not staged for commit:
(use “git add/rm …” to update what will be committed)
(use “git checkout – …” to discard changes in working directory)

deleted: Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.3/lib/active_support/array_inquirer.rb
deleted: Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.3/lib/active_support/backtrace_cleaner.rb
deleted: Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.3/lib/active_support/benchmarkable.rb
(and hundreds more with the deleted entries in red font color)

After that, nothing worked:

brew search inkscape
/usr/local/Homebrew/Library/Homebrew/global.rb:12:in require': cannot load such file -- active_support/core_ext/object/blank (LoadError) from /usr/local/Homebrew/Library/Homebrew/global.rb:12:in<top (required)>’
from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in `require_relative’

from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in `’

KBook-2:Homebrew kurt$ git commit -a

hint: Waiting for your editor to close the file… fatal: cannot run /Applications/BBEdit.app: No such file or directory

error: unable to start editor ‘/Applications/BBEdit.app’
Please supply the message using either -m or -F option.
KBook-2:Homebrew kurt$ brew help
/usr/local/Homebrew/Library/Homebrew/global.rb:12:in require': cannot load such file -- active_support/core_ext/object/blank (LoadError) from /usr/local/Homebrew/Library/Homebrew/global.rb:12:in<top (required)>’
from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in require_relative' from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in
KBook-2:Homebrew kurt$ brew ?
/usr/local/Homebrew/Library/Homebrew/global.rb:12:in require': cannot load such file -- active_support/core_ext/object/blank (LoadError) from /usr/local/Homebrew/Library/Homebrew/global.rb:12:in<top (required)>’
from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in require_relative' from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in
KBook-2:Homebrew kurt$ brew repair
/usr/local/Homebrew/Library/Homebrew/global.rb:12:in require': cannot load such file -- active_support/core_ext/object/blank (LoadError) from /usr/local/Homebrew/Library/Homebrew/global.rb:12:in<top (required)>’
from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in require_relative' from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in
KBook-2:Homebrew kurt$ brew
‘/usr/local/Homebrew/Library/Homebrew/global.rb:12:in require': cannot load such file -- active_support/core_ext/object/blank (LoadError) from /usr/local/Homebrew/Library/Homebrew/global.rb:12:in<top (required)>’
from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in require_relative' from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in
KBook-2:Homebrew kurt$
KBook-2:Homebrew kurt$
KBook-2:Homebrew kurt$ brew update
fatal: could not read Username for ‘https://github.com’: terminal prompts disabled
Error: homebrew/homebrew-x11 does not exist! Run ‘brew untap homebrew/homebrew-x11’
To restore the stashed changes to /usr/local/Homebrew run:
‘cd /usr/local/Homebrew && git stash pop’
KBook-2:Homebrew kurt$ brew untap homebrew/homebrew-x11
Untapping homebrew/x11…
Untapped (282 files, 708.5KB).
KBook-2:Homebrew kurt$ cd /usr/local/Homebrew && git stash pop
Removing Library/Homebrew/vendor/bundle/ruby/2.6.0
Removing Library/Homebrew/vendor/bundle/ruby/2.5.0
Removing Library/Homebrew/vendor/bundle/ruby/2.4.0
Removing Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/zoneinfo_timezone_info.rb
Removing Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/zoneinfo_data_source.rb

And finally,

brew doctor
/usr/local/Homebrew/Library/Homebrew/global.rb:12:in require': cannot load such file -- active_support/core_ext/object/blank (LoadError) from /usr/local/Homebrew/Library/Homebrew/global.rb:12:in<top (required)>’
from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in require_relative' from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in

Any insights? Is Homebrew fatally hosed and in need of uninstall and reinstall? Or is there a simple fix (to which I am oblivious)?

Thanks for any help you can provide. I’ve used homebrew for a couple years now, love it, and haven’t run into any brick walls… until now.

Can you try brew update-reset? And if that doesn’t work:

cd $(brew --repo)
git add .
git fetch
git reset --hard origin/master
1 Like

Freaking AWESOME!

That’s some powerful magic.

All seems well again.

Thank you for your help!

1 Like