rails 4.2.0控制台已打破'文件已定义'

时间:2015-05-09 04:17:21

标签: ruby-on-rails

目前使用rails 4.2.0&红宝石2.2.0p0 重新捆绑以获取一些宝石更新 RAILS_ENV =生产轨道c失败,带有以下堆栈跟踪

  

/home/linkee/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.7.11/lib/bundler/runtime.rb:76:in {{1}需要'阻止(2级)           来自/home/linkee/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.7.11/lib/bundler/runtime.rb:72:in require': File is already defined (NameError) from /home/linkee/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.7.11/lib/bundler/runtime.rb:76:in块在要求'           来自/home/linkee/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.7.11/lib/bundler/runtime.rb:61:in each' from /home/linkee/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.7.11/lib/bundler/runtime.rb:72:in要求& #39;           来自/home/linkee/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.7.11/lib/bundler.rb:134:in each' from /home/linkee/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.7.11/lib/bundler/runtime.rb:61:in&#39 ;           来自/home/linkee/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:141:in {{1} } require_application_and_environment&#39!;           来自/home/linkee/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:67:in {{1} } run_command&#39!;           来自/home/linkee/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/commands.rb:17:in require' from /home/linkee/linker/config/application.rb:14:in要求& #39;           来自/ home / linkee / linker / bin / rails:4:在`'

我注意到在尝试要求' zipruby'时,runtime.rb失败了。所以我通过将require.rb中的第76行更改为

来排除了所需的宝石
require'
          from /home/linkee/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:141:in

并且至少绕过了问题所在。

如果您需要更多信息以帮助解决此问题,请与我们联系。

0 个答案:

没有答案