耙子流产了!没有这样的文件加载 - HTML /文件

时间:2012-03-01 03:19:11

标签: ruby-on-rails ruby rake

我一直在尝试设置rake任务,但是当我尝试运行它时,我得到了

rake aborted!
no such file to load -- html/document

以下是我尝试运行rake -T --trace时的跟踪:

/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/var/www/phonelog_rb/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
/var/www/phonelog_rb/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/var/www/phonelog_rb/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
/var/www/phonelog_rb/vendor/rails/actionpack/lib/action_controller/assertions/response_assertions.rb:2
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/var/www/phonelog_rb/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
/var/www/phonelog_rb/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/var/www/phonelog_rb/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
/var/www/phonelog_rb/vendor/rails/actionpack/lib/action_controller/assertions.rb:48:in `included'
/var/www/phonelog_rb/vendor/rails/actionpack/lib/action_controller/assertions.rb:47:in `each'
/var/www/phonelog_rb/vendor/rails/actionpack/lib/action_controller/assertions.rb:47:in `included'
/var/www/phonelog_rb/vendor/rails/actionpack/lib/action_controller/assertions.rb:66:in `include'
/var/www/phonelog_rb/vendor/rails/actionpack/lib/action_controller/assertions.rb:66
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/var/www/phonelog_rb/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
/var/www/phonelog_rb/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/var/www/phonelog_rb/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
/var/www/phonelog_rb/vendor/rails/actionpack/lib/action_controller/test_process.rb:1
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/var/www/phonelog_rb/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
/var/www/phonelog_rb/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/var/www/phonelog_rb/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
/var/www/phonelog_rb/vendor/rails/actionpack/lib/action_controller/integration.rb:3
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/var/www/phonelog_rb/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
/var/www/phonelog_rb/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/var/www/phonelog_rb/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
/var/www/phonelog_rb/lib/tasks/update_calls.rake:1
/var/www/phonelog_rb/vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in `load_without_new_constant_marking'
/var/www/phonelog_rb/vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in `load'
/var/www/phonelog_rb/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/var/www/phonelog_rb/vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in `load'
/var/www/phonelog_rb/vendor/rails/railties/lib/tasks/rails.rb:8
/var/www/phonelog_rb/vendor/rails/railties/lib/tasks/rails.rb:8:in `each'
/var/www/phonelog_rb/vendor/rails/railties/lib/tasks/rails.rb:8
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/var/www/phonelog_rb/Rakefile:11
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load_rakefile'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:501:in `raw_load_rakefile'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `load_rakefile'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/bin/rake:33
/usr/bin/rake:19:in `load'
/usr/bin/rake:19

非常感谢您提供的任何帮助。如果您需要任何进一步的细节,请告诉我。

3 个答案:

答案 0 :(得分:0)

当您开始执行任务时,您的应用程序所需的听起来像Gem。尝试使用bundle exec rake,看看是否能解决问题。

答案 1 :(得分:0)

看起来rake无法找到rdoc/tasktesttask。尝试将它们添加到gem文件(例如 - gem'rdoc')并运行bundle install。

答案 2 :(得分:0)

/var/www/phonelog_rb/lib/tasks/update_calls.rake:1

看起来该文件顶部有一些东西(我猜一个require)导致事情变得混乱。