I encounter the same problem in Window 8.1 64bit, Ruby 2.3.3 64bit, Rails 4.2.10.
My quick solution:
Step 1: Remove all bcrypt in gem: gem uninstall bcrypt (select option 3 if it exists (delete all))
Step 2: install bcrypt again: gem install bcrypt
Then check the bcrypt version: gem list bcrypt
Step 3: In the gemfile of your project add: gem 'bcrypt', '3.1.11', platforms: [:ruby, :x64_mingw] note: change the appropriate version of your bcrypt (my version: 3.1.11)
Step 4: Run the command in your project path: bundle install
Step 5: Remove the unnecessary bcrypt: Run command: gem uninstall bcrypt You can see some version of bcrypt, you must save one version: bcrypt- [your-version]. (Uninstall the whole version: bcrypt- [your version] -x64-mingw32. In my case, uninstall: bcrypt-3.1.11-x64-mingw32)
Restart Rails, execute
I think this is a suggestion because when we install bcrypt, we did not specify 64-bit or 32-bit, it is not compatible with a window or ruby ββ(64-bit or 32-bit)
source share