【问题标题】:rake db:migrate fails with the following tracerake db:migrate 失败并出现以下跟踪
【发布时间】:2012-07-28 00:43:36
【问题描述】:

有人可以告诉我如何理解这个 rake 跟踪并指出我解决这个问题的正确方向吗?我尝试执行 rake db:migrate,然后收到一条错误消息“rake aborted!无法加载此类文件 -- ruby​​/debug/ide'。

我确保已安装 ruby​​-debug-ide gem,运行 bundle install,并确保我在 rvm 中使用了正确的 ruby​​ 版本。当我运行跟踪时,这就是我得到的:

rake aborted!
cannot load such file -- ruby/debug/ide
/home/dso/.rvm/gems/ruby-1.9.3-p125@cams/gems/bundler-1.1.5/lib/bundler/runtime.rb:74:in `require'
/home/dso/.rvm/gems/ruby-1.9.3-p125@cams/gems/bundler-1.1.5/lib/bundler/runtime.rb:74:in `rescue in block in require'
/home/dso/.rvm/gems/ruby-1.9.3-p125@cams/gems/bundler-1.1.5/lib/bundler/runtime.rb:62:in `block in require'
/home/dso/.rvm/gems/ruby-1.9.3-p125@cams/gems/bundler-1.1.5/lib/bundler/runtime.rb:55:in `each'
/home/dso/.rvm/gems/ruby-1.9.3-p125@cams/gems/bundler-1.1.5/lib/bundler/runtime.rb:55:in `require'
/home/dso/.rvm/gems/ruby-1.9.3-p125@cams/gems/bundler-1.1.5/lib/bundler.rb:119:in `require'
/home/dso/rails_projects/cams/src/config/application.rb:13:in `<top (required)>'
/home/dso/rails_projects/cams/src/Rakefile:5:in `require'
/home/dso/rails_projects/cams/src/Rakefile:5:in `<top (required)>'
/home/dso/.rvm/gems/ruby-1.9.3-p125@cams/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load'
/home/dso/.rvm/gems/ruby-1.9.3-p125@cams/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load_rakefile'
/home/dso/.rvm/gems/ruby-1.9.3-p125@cams/gems/rake-0.9.2.2/lib/rake/application.rb:501:in `raw_load_rakefile'
/home/dso/.rvm/gems/ruby-1.9.3-p125@cams/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `block in load_rakefile'
/home/dso/.rvm/gems/ruby-1.9.3-p125@cams/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/dso/.rvm/gems/ruby-1.9.3-p125@cams/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile'
/home/dso/.rvm/gems/ruby-1.9.3-p125@cams/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `block in run'
/home/dso/.rvm/gems/ruby-1.9.3-p125@cams/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/dso/.rvm/gems/ruby-1.9.3-p125@cams/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/home/dso/.rvm/gems/ruby-1.9.3-p125@cams/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/home/dso/.rvm/gems/ruby-1.9.3-p125@cams/bin/rake:19:in `load'
/home/dso/.rvm/gems/ruby-1.9.3-p125@cams/bin/rake:19:in `<main>'
/home/dso/.rvm/gems/ruby-1.9.3-p125@cams/bin/ruby_noexec_wrapper:14:in `eval'
/home/dso/.rvm/gems/ruby-1.9.3-p125@cams/bin/ruby_noexec_wrapper:14:in `<main>'

任何帮助将不胜感激。提前感谢所有回复的人!

【问题讨论】:

    标签: rake


    【解决方案1】:

    请忽略这个问题,我最谦虚的道歉。在 GemFile 中发现问题。另一位开发人员对导致问题的 GemFile 进行了更改。为一个新项目参加 Rails 速成课程 :-)

    【讨论】:

    • 如果您愿意,可以使用下方的“删除”链接删除您的问题 =)
    猜你喜欢
    • 1970-01-01
    • 2012-11-26
    • 2012-06-19
    • 1970-01-01
    • 1970-01-01
    • 2019-02-19
    • 2016-04-26
    • 2011-04-26
    • 2011-02-16
    相关资源
    最近更新 更多