Category Archives: Rails

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 !

Install mysql2 gem on windows

I spent almost an entire evening to find out why I couldn’t install the mysql2 gem on my windows 8.1. Don’t know if it’s easier with previous windows but I’ll show you how I did it.

A bundle install gave me this

Read More →