Ruby cannot load such file - active_support/core_ext/object/blank

cannot load such file -- active_support
cannot load such file -- active_support/core_ext
homebrew
cannot load such file -- concurrent/2.6/concurrent_ruby_ext (loaderror)
brew cannot load such file
uninstall homebrew
brew cannot load such file active_support duration loaderror
brew cask

I was trying to run brew doctor but system popped up error of

/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- active_support/core_ext/object/blank (LoadError)

Searched online and another post suggested to just "gem install activesupport" but then I ran into error of:

ERROR:  Error installing activesupport:
    i18n requires Ruby version >= 2.3.0.

I also tried to rvm install ruby-2.3.0 but the same error popped again

[2019-02-26 10:07:41] requirements_osx_brew_libs_install
requirements_osx_brew_libs_install ()  { 
    brew install "$@" --force || { 
        \typeset ret=$?;
        requirements_osx_brew_libs_error "installation";
        return $ret
    } } current path: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib
PATH=/Users/{user_name}/.aw/pex_resources/scripts/binaries:/usr/local/sbin:/Users/fengjiao/.rbenv/shims:/Users/{user_name}/.nvm/v0.10.32/bin:/Users/fengjiao/bin:/usr/local/sbin:/usr/local/bin:/Users/{user_name}/.rbenv/shims:/Users/{user_name}/.nvm/v0.10.32/bin:/Users/{user_name}/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/munki:/opt/X11/bin:/Users/fengjiao/gocode/bin:/Users/{user_name}/.rvm/bin
command(10): requirements_osx_brew_libs_install autoconf automake
libtool pkg-config coreutils libyaml readline libksba openssl@1.1
++ brew install autoconf automake libtool pkg-config coreutils libyaml readline libksba openssl@1.1 --force
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in
`require': cannot load such file --
active_support/core_ext/object/blank (LoadError)    from
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in
`require'   from /usr/local/Homebrew/Library/Homebrew/global.rb:10:in
`<top (required)>'  from
/usr/local/Homebrew/Library/Homebrew/brew.rb:21:in `require_relative'
    from /usr/local/Homebrew/Library/Homebrew/brew.rb:21:in `<main>'
++ typeset ret=1
++ requirements_osx_brew_libs_error installation
++ rvm_warn 'There were package installation errors, make sure to read the log.

Try `brew tap --repair` and make sure `brew doctor` looks reasonable.

Running brew style fixed this issue for me.


Update

As mentioned in the comments, for some people the solution is:

brew update-reset

cannot run any brew comands -- cannot load such file -- concurrent , Any brew commands couldn't be used , I have no idea. maybe the -ruby/2.3.7/ lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot . / activesupport-5.2.2/lib/active_support/core_ext/object/blank.rb:4:in� The problem mainly occurs after updating OS X to El Capitan (OS X 10.11) or macOS Sierra (macOS 10.12). This is because of file permission issues with El Capitan’s or later macOS's new SIP process.

Had the same problem. I had to run brew update-reset to fix it.

Failure on any install after update � Issue #6710 � Homebrew/brew , /portable-ruby/2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in .0/gems/activesupport-6.0.1/lib/active_support/core_ext/object/blank.rb:3:in / core_ext/kernel_require.rb:54:in `require': cannot load such file� Teams. Q&A for Work. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information.

In my case, I have to force homebrew/linuxbrew to use its own portable-ruby to fix it.

I am running ArchLinux with ruby 2.7.0 installed, after I switch to homebrew's portable-ruby by export HOMEBREW_FORCE_VENDOR_RUBY=1 as described in the manpage and issue brew update, homebrew automatically downloads portable-ruby 2.6.3, and everything's back to normal.

I think the root cause might be homebrew's incompatible with a higher version of ruby.

Ruby cannot load such file, Ruby cannot load such file - active_support/core_ext/object/blank. Vis Team April 30, 2019. I was trying to run brew doctor but system popped up error of. Dismiss Join GitHub today. GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.

require': cannot load such file -- active_support/core_ext/object , `require': cannot load such file -- active_support/core_ext/object/blank (LoadError ) /Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in� A Ruby on Rails application loads all Active Support unless config.active_support.bare is true. In that case, the application will only load what the framework itself cherry-picks for its own needs, and can still cherry-pick itself at any granularity level, as explained in the previous section.

Missing File - Homebrew Dead?, Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2. require ': cannot load such file -- active_support/core_ext/object/blank� Dismiss Join GitHub today. GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

Brew cleanup throws "Could not find" error regarding gem, rb:55:in `require': cannot load such file -- active_support/core_ext/object/blank ( LoadError) from /System/Library/Frameworks/Ruby.framework/� devise-i18n did_you_mean fast_blank fcm figaro font_assets friendly_id groupdate guard guard-livereload (~> 2.5) guard-minitest honeybadger jquery-rails jquery-slick-rails jquery-turbolinks listen mailgun_rails mini_magick minitest-ci net-ldap omniauth omniauth-facebook paperclip paperclip-av-transcoder pg puma rails rails_autolink redcarpet

Comments
  • @Mave for me happened after I ran brew cleanup
  • @crisscross please add your command as an answer, it is only thing which worked for me, thank you :)
  • @BigHeadCreations , @Mave: I was able to confirm that this happened directly after a brew cleanup. Just prior to this, brew update said gave updated commit: 6db1c7383. brew update-reset fixed the issue.
  • Thanks!! I solved my issue using brew update-reset
  • Works for macOS 10.15