LoadError: cannot load such file — bcrypt_ext

I got a bcrypt error when using Devise on Windows 10 and Ruby 2.2.2p95 and rails 4.2.5

You should have DevKit installed and configured correctly to recompile the gem.

Firt stop your server and remove every bcrypt gem or bcrypt-ruby gem.

Don’t forget to include bcrypt in your Gemfile

make a bundle update and recompile the gem like this

Restart your server.

It should do the trick !

5 Thoughts on “LoadError: cannot load such file — bcrypt_ext

  1. Alfonso on November 9, 2016 at 15:09 said:

    Awesome, at least a solution that actually worked out.

    Thank’s a lot for this!!

  2. Emeka on January 16, 2017 at 02:25 said:

    i cant do make for some reason im in the right the path but the make command doesnt work
    it says it has no target

  3. jyothsna on February 11, 2017 at 13:49 said:

    thanks.it worked.

  4. carterax on October 5, 2017 at 12:22 said:

    Works like a charm thanks a whole lot. Page Bookmarked

  5. Darshan on August 7, 2020 at 13:12 said:

    For bcrypt + bitnami
    1) cd C:\Bitnami\rubystack-2.3.6-1\ruby\lib\ruby\gems\2.3.0\gems\bcrypt-3.1.11-x86-mingw32\ext\mri
    2) load bitnami environment using below command
    CALL “C:\Bitnami\rubystack-2.3.6-1\scripts\setenv.bat” (edited)
    3) ruby extconf.rb
    4) C:\Bitnami\rubystack-2.3.6-1\DevKit\devkitvars.bat
    5)make install

Leave a Reply

Your email address will not be published. Required fields are marked *

Post Navigation