bcrypt error in Rails 5.1

Asked

Viewed 86 times

0

In a new project, after installing the Gemfile gems, when I try to start the server with rails s the following error is displayed in the console :

LoadError: cannot load such file -- 2.3/bcrypt_ext
  • This error happens when? in what situation? could describe a little more?

  • happens when I start the server with Rails, right after installing gemfile gems

  • Are you using windows? Some people reported this error on the windows platform. https://github.com/codahale/bcrypt-ruby/issues/142 .

  • yes I’m using windows 10.

1 answer

0


Uninstall the Gems relating to bcrypt and reinstall as in the last line below:

gem uninstall bcrypt-ruby
gem uninstall bcrypt
gem install bcrypt --platform=ruby

Then, in your Gemfile, replace the bcrypt for

gem 'bcrypt', '~> 3.1.11'

Stop the Rails server and run bundle install and then you can start the server again.

Some possible solutions can also be seen here.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.