Skip to content

Instantly share code, notes, and snippets.

@mittalyashu
Created September 9, 2017 15:03
Show Gist options
  • Save mittalyashu/ade066bef01a49dc4b96eedba20f8661 to your computer and use it in GitHub Desktop.
Save mittalyashu/ade066bef01a49dc4b96eedba20f8661 to your computer and use it in GitHub Desktop.
How to fix this issue in Ruby on rails `cannot load such file -- bcrypt_ext`
C:\Users\Administrator>ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [x64-mingw32]

C:\Users\Administrator>gem list bcrypt

*** LOCAL GEMS ***

bcrypt (3.1.11 x64-mingw32)

C:\Users\Administrator>gem uninstall bcrypt
Successfully uninstalled bcrypt-3.1.11-x64-mingw32

C:\Users\Administrator>gem list bcrypt

*** LOCAL GEMS ***

C:\Users\Administrator>gem install bcrypt --platform=ruby
Fetching: bcrypt-3.1.11.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
Successfully installed bcrypt-3.1.11
Parsing documentation for bcrypt-3.1.11
Installing ri documentation for bcrypt-3.1.11
Done installing documentation for bcrypt after 1 seconds
1 gem installed

C:\Users\Administrator>gem list bcrypt

*** LOCAL GEMS ***

bcrypt (3.1.11)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment