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

前端 未结 9 1481
醉酒成梦
醉酒成梦 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条回答
  •  -上瘾入骨i
    2020-12-30 04:57

    @user1185081 's solution worked for me in a windows machine. I ran following commands and worked like magic:

    $ cd C:\RailsInstaller\Ruby2.2.0\lib\ruby\gems\2.2.0\gems\bcrypt-3.1.10-x86-mingw32\ext\mri  
    $ ruby extconf.rb
    $ C:\\devkitvars.bat  (assuming you have devkit installed)(Ran this instead of running "make" because it was not recognized as an internal or external command)
    $ make install
    

提交回复
热议问题