由于Windows 7上的bcrypt gem,无法运行rake命令

时间:2016-07-18 20:39:58

标签: ruby-on-rails ruby rubygems bcrypt

我的Windows 7计算机上存在以下与bcrypt gem相关的错误。

$ rake db:drop db:create db:schema:load db:migrate db:fixtures:load
rake aborted!
LoadError: cannot load such file -- bcrypt_ext
C:/nital/office-data/integration-services-projects/Payments/customer-portal-project/customer-portal/config/application.rb:8:in `<top (required)>'
C:/nital/office-data/integration-services-projects/Payments/customer-portal-project/customer-portal/Rakefile:4:in `<top (required)>'
LoadError: cannot load such file -- 2.2/bcrypt_ext
C:/nital/office-data/integration-services-projects/Payments/customer-portal-project/customer-portal/config/application.rb:8:in `<top (required)>'
C:/nital/office-data/integration-services-projects/Payments/customer-portal-project/customer-portal/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)


$ ruby -v
ruby 2.2.4p230 (2015-12-16 revision 53155) [i386-mingw32]

$ rails --version
Rails 4.2.6

$ rake --version
rake, version 11.1.2

的Gemfile

gem 'bcrypt-ruby',  '3.1.2'
gem 'bcrypt',       '3.1.8'

请指导。

0 个答案:

没有答案