Has anyone had any issues installing bcrypt 3.0.1 or 3.1.2 on Windows 8? I've tried testing different versions but i'm getting this error.
but I'm getting this error after running rails server. cannot load such file -- 2.0/bcrypt_ext "You don't have bcrypt-ruby installed in your application. please add it to your gemfile and run bundle install"
I'm using: OS: Windows 8 Rails 4.0.0 Ruby 2.0.0 bcrypt-ruby 3.0.1
my gemsfile has bcrypt defined as this. gem 'bcrypt-ruby', '3.0.1'
When I uninstalled 3.0.1 and installed 3.1.2, update my gemfile to point to 3.1.2, run bundle install, then run rails server i'm getting an error:
"can't activate bcrypt-ruby (~>3.0.0), already activated 3.1.2...make sure all dependencies are added to gemfile."
I tried doing a bundle update to make I get all the dependencies but no luck. I've searched multiple forums and tried many solutions to no luck. I'd love any advice and feedback you may have.
Thank you!
bcrypt-ruby 3.0.1 was released about 2 years ago and is not compatible with your environment. You have to use the latest release [3.1.2].
That's how I declared it in my Gemfile:
or
to get it from http://rubygems.org
To get rid of error (can't activate bcrypt-ruby (~> 3.0.0), ...) go to
and change the line to
to
I ran into the same issues when building the sample app at http://ruby.railstutorial.org/. This this answer, with a little tweaking, solved it for me:
https://stackoverflow.com/a/17368137/2721455
After uninstalling and re-installing the gem according to the direction in the post above, I went into my Ruby200/lib/ruby/gems/2.0.0/gems directory and deleted all of the versions of bcrypt-ruby that ended in -mingw32 or -mingw64, leaving 'bcrypt-ruby-3.0.1' and 'bcrypt-ruby-3.1.2' in tact.
Be warned -- if you run a bundle update, you'll have to do this all over again because the Windows version of bcrypt-ruby will be automatically re-installed.