我正在安装新的Windows 10环境以继续开发已经存在的Rails API。在bundle install
之后,我需要设置数据库。这是我正在运行的命令,以及带错误的输出。我不是Rails开发人员,只需运行此API即可开始攻击客户端JavaScript。我应该从哪里开始寻找解决方法?
$ rake db:setup --trace
rake aborted!
Bundler::GemRequireError: There was an error while trying to load the gem 'responders'.
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:80:in `rescue in block (2 levels) in require'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `each'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `block in require'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `each'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `require'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler.rb:99:in `require'
C:/msys64/home/Isaac Lewis/vibragenix-api/config/application.rb:7:in `<top (required)>'
C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
C:/msys64/home/Isaac Lewis/vibragenix-api/Rakefile:4:in `<top (required)>'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load_rakefile'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:689:in `raw_load_rakefile'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:94:in `block in load_rakefile'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:93:in `load_rakefile'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:77:in `block in run'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:75:in `run'
C:/Ruby22-x64/bin/rake:33:in `<main>'
NameError: uninitialized constant ActionView::Helpers::ActiveModelHelper
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionview-4.2.1/lib/action_view/helpers.rb:40:in `<module:Helpers>'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionview-4.2.1/lib/action_view/helpers.rb:4:in `<module:ActionView>'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionview-4.2.1/lib/action_view/helpers.rb:3:in `<top (required)>'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionview-4.2.1/lib/action_view/base.rb:5:in `<top (required)>'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionview-4.2.1/lib/action_view/view_paths.rb:1:in `<top (required)>'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/abstract_controller/rendering.rb:4:in `<top (required)>'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_controller/base.rb:204:in `<class:Base>'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_controller/base.rb:164:in `<module:ActionController>'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_controller/base.rb:5:in `<top (required)>'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/responders-2.1.0/lib/responders/controller_method.rb:37:in `<top (required)>'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/responders-2.1.0/lib/responders.rb:15:in `<module:Responders>'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/responders-2.1.0/lib/responders.rb:9:in `<top (required)>'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:77:in `require'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:77:in `block (2 levels) in require'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `each'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `block in require'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `each'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `require'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler.rb:99:in `require'
C:/msys64/home/Isaac Lewis/vibragenix-api/config/application.rb:7:in `<top (required)>'
C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
C:/msys64/home/Isaac Lewis/vibragenix-api/Rakefile:4:in `<top (required)>'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load_rakefile'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:689:in `raw_load_rakefile'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:94:in `block in load_rakefile'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:93:in `load_rakefile'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:77:in `block in run'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:75:in `run'
C:/Ruby22-x64/bin/rake:33:in `<main>'
答案 0 :(得分:1)
这听起来像是宝石的响应者&#39;没有正确安装。尝试运行宝石列表&#39;看看你是否安装了它。如果不是,请尝试运行“宝石安装响应者”#39;然后再试一次。
P.S。我想评论(不回答)但我还没有获得所需的声誉。
P.P.S。我过去也遇到过某些宝石和x64版本的ruby问题所以也许它也可能就是这样。抱歉这种反应相当模糊。