My rails s
and rails c
has suddenly started refusing to boot up with the error below. I don't recall updating or deleting any gems. Any help in fixing the situation is greatly appreciated.
incompatible library version - /Users/[me]/projects/[app]/vendor/bundle/ruby/2.6.0/gems/bcrypt-3.1.12/lib/bcrypt_ext.bundle (LoadError)
bcrypt
is not an explicitly required gem in our project, but it's included in Gemfile.lock
because it's a dependency: bcrypt (3.1.12)
So far I've tried these, but I get the same error:
- Uninstalling and installing
bcrypt
in my system (according to this suggestion)
gem uninstall bcrypt -v 3.1.12
You have requested to uninstall the gem:
bcrypt-3.1.12
sorcery-0.14.0 depends on bcrypt (~> 3.1)
If you remove this gem, these dependencies will not be met.
Continue with Uninstall? [yN] y
Successfully uninstalled bcrypt-3.1.12
gem install bcrypt -v 3.1.12
Successfully installed bcrypt-3.1.12
gem pristine --all
Here are the results of what I get if I check the gem versions:
gem info bcrypt
*** LOCAL GEMS ***
bcrypt (3.1.12)
Author: Coda Hale
Homepage: https://github.com/codahale/bcrypt-ruby
License: MIT
Installed at: /Users/[me]/.rvm/gems/ruby-2.6.2
OpenBSD's bcrypt() password hashing algorithm.
bundle info bcrypt
* bcrypt (3.1.12)
Summary: OpenBSD's bcrypt() password hashing algorithm.
Homepage: https://github.com/codahale/bcrypt-ruby
Path: /Users/[me]/projects/[app]/vendor/bundle/ruby/2.6.0/gems/bcrypt-3.1.12