cannot load such file -- 1.9/bcrypt_ext (LoadError)
This morning, I'm facing the same issue too (Windows 7).
Let me recommend to have a look here
https://github.com/codahale/bcrypt-ruby/issues/72
I successfully fix my problem like this (updating my Gemfile):
gem 'bcrypt-ruby', '3.1.1.rc1', :require => 'bcrypt'
LoadError: cannot load such file — bcrypt_ext
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
reference: https://www.alib.jp/entries/bcrypt_ext_load_error_on_ruby21x
LoadError: cannot load such file -- bcrypt_ext on Windows 2008 x64 server
Solution was here: bcrypt-ruby@github:
Rebuild locally the bcrypt gem:
- Change to the gem directory \Ruby22-x64\lib\ruby\gems\2.2.0\gems\bcrypt-3.1.10-x64-mingw32\ext\mri>
- Run ruby extconf.rb
- Run make
- Run make install
Note that this works only if your DevKit environment is correctly setup (run devkitvars.bat).
RubyInstaller 2.2.1 and Rails - Rake cannot load Nokogiri
Nokogiri doesn't exist yet for Ruby 2.2 on windows.
https://github.com/sparklemotion/nokogiri/issues/1256
Essentially, nokogiri is provided preocompiled for specific ruby versions, and 2.2 isn't one of those versions yet. compiling nokogiri for windows is overly complicated.
Related Topics
Normalizing Line Endings in Ruby
How to Escape Strings for Terminal in Ruby
How Does MACports Install Packages? How to Activate a Ruby Installation Done via MACports
Using Soap and Other Standard Libraries in Ruby 1.9.2
Can a Ruby Script Tell What Directory It's In
What Do the Fields of Ruby's Gc.Stat Mean
How to Setup Urls for Static Site with Ruby Rack on Heroku
Share Models Between 2 Rails API's (Separate Applications)
How to Extract the Sign of an Integer in Ruby
Resetting a Singleton Instance in Ruby
What Is the Community-Preferred Ruby Unit Testing Framework
Why Is Date.Today - 6.Months + 6.Months != Date.Today
Ruby Create Recursive Directory Tree
Ruby - Activerecord::Connectionnotestablished