LoadError: cannot load such file — bcrypt_ext on Windows 2008 x64 server

前端 未结 9 1421
醉酒成梦
醉酒成梦 2020-12-30 04:32

I upgraded my environment from Ruby 2.0.0 to 2.2.3.

I also upgraded (overwrite) DevKit, and re-run ruby dk.rb install.

I removed Gemfile.lock and ran bundle

相关标签:
9条回答
  • 2020-12-30 05:13

    This works for me, add this to your gems file:

    gem 'bcrypt', '~> 3.1.7', platform: :ruby
    
    0 讨论(0)
  • 2020-12-30 05:14

    What worked for me on Windows 7:

    1. gem uninstall bcrypt to uninstall all versions of bcrypt, including those listed as dependencies
    2. gem install bcrypt to reinstall
    3. bundle install
    0 讨论(0)
  • 2020-12-30 05:15

    Solution was here: bcrypt-ruby@github:

    Rebuild locally the bcrypt gem:

    1. Change to the gem directory \Ruby22-x64\lib\ruby\gems\2.2.0\gems\bcrypt-3.1.10-x64-mingw32\ext\mri>
    2. Run ruby extconf.rb
    3. Run make
    4. Run make install

    Note that this works only if your DevKit environment is correctly setup (run devkitvars.bat).

    0 讨论(0)
提交回复
热议问题