Installing bcrypt-ruby gem on Windows

后端 未结 7 2201
夕颜
夕颜 2020-12-29 16:07

I\'m trying to install bcrypt-ruby on Windows Vista.

So far, I have been able to install nmake.exe from a MS knowledge base article and cl.exe from installing Visual

7条回答
  •  执念已碎
    2020-12-29 16:46

    On Windows Server 2003 (Ruby 1.8.6), the plain vanilla:

    gem install bcrypt-ruby
    

    worked like a charm.
    Note that if you want to use it with Rails, you must use:

    config.gem 'bcrypt-ruby', :lib => 'bcrypt'
    

提交回复
热议问题