0

有人可以告诉我如何理解这个 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>'

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

4

1 回答 1

0

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

于 2012-07-30T18:24:58.977 回答