Read more

How to: Solve gem loaded specs mutex

Emanuel
February 02, 2018Software engineer at makandra GmbH

Use bundler > 1.15 to fix Gem::LOADED_SPECS_MUTEX (NameError).


Illustration UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
Read more Show archive.org snapshot

Given the following project:

ruby -v
ruby 1.8.7

bundler -v
Bundler version 1.13.7

gem -v
1.8.30

rails -v
Rails 3.2.22.1

Running specs or features resulted in:

uninitialized constant Gem::LOADED_SPECS_MUTEX (NameError)

The previous settings described in Maximum version of Rubygems and Bundler for Ruby 1.8.7 and Rails 2.3 (even the rails version was rails 3.2 and not 2.3) seems not to work here, so I used (also described in the card) a bundler version > 1.15 (exactly 1.16.1). This fixed the issue.

Posted by Emanuel to makandra dev (2018-02-02 08:58)