我正在安装一个新的Windows10环境,以继续开发已经存在的Rails API。在bundle install之后,我需要设置db。下面是我正在运行的命令,以及带有错误的输出。我不是Rails开发人员,只需要运行此应用程序接口就可以开始在客户端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>'发布于 2016-01-07 06:48:12
听起来好像gem的响应器没有正确安装。尝试运行'gem list‘,看看你是否安装了它。如果不是,请尝试运行'gem install responders‘,然后重试。
附言:我想发表评论(不是回答),但我还没有得到所需的声誉。
另外,我过去也遇到过某些gem和ruby的x64版本的问题,所以也许也可以归结为这个问题。很抱歉,这个回应相当含糊。
https://stackoverflow.com/questions/34644160
复制相似问题