LoadError: cannot load such file - bcrypt_ext

I tried to deploy authentication in my rails application.

I get this problem

"cannot load such file - bcrypt_ext"

I see that this is a common problem among Windows based computers, but the answers to other questions have not yet helped me.

I am running Windows 8 x64 with x86 ruby ​​and devkit

+4
source share
4 answers

try

C:\> gem install --no-ri --no-rdoc bcrypt
C:\> cd (path to gems root)\bcrypt-3.1.7-x86-mingw32\ext\mri
C:\(path to gems root)\bcrypt-3.1.7-x86-mingw32\ext\mri> ruby extconf.rb
C:\(path to gems root)\bcrypt-3.1.7-x86-mingw32\ext\mri> make
C:\(path to gems root)\bcrypt-3.1.7-x86-mingw32\ext\mri> make install

link: https://www.alib.jp/entries/bcrypt_ext_load_error_on_ruby21x

+5
source

bcrypt_ext.so - - \Ruby23\lib\ruby ​​\ gems\2.3.0\gems\bcrypt-3.1.11-x86-mingw32\lib - it .:)

0

: https://github.com/codahale/bcrypt-ruby/issues/142

- bcrypt: gem uninstall bcrypt

3 ( )

- bcrypt-ruby: gem uninstall bcrypt-ruby

3 ( )

gemfile :

gemfile: gem 'bcrypt', :: ruby ​​

, , gemfile git:

gem 'bcrypt', git: 'https://github.com/codahale/bcrypt-ruby.git',: require = > 'bcrypt'

0

This link https://github.com/codahale/bcrypt-ruby/issues/142

Someone mentioned this decision.

gem 'bcrypt', git: 'https://github.com/codahale/bcrypt-ruby.git', :require => 'bcrypt'

And it worked for me

0
source

Source: https://habr.com/ru/post/1627091/


All Articles