i get the above error when running rake. I tried switching rails 2.3.3 with 2.3.2 but it didn''t help. here are my gems: actionmailer (2.3.2) actionpack (2.3.2) activerecord (2.3.2) activeresource (2.3.2) activesupport (2.3.2) builder (2.1.2) cucumber (0.3.98) diff-lcs (1.1.2) hoe (2.3.3) nokogiri (1.3.3) polyglot (0.2.8) rack (1.0.0) rails (2.3.2) rake (0.8.7) rspec (1.2.8) rspec-rails (1.2.7.1) rubyforge (1.0.4) term-ansicolor (1.0.4) test-unit (1.2.3) treetop (1.3.0) webrat (0.5.3) and here is the error after typing rake: no such file to load -- rspec-rails /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/polyglot-0.2.8/lib/ polyglot.rb:68:in `require'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/polyglot-0.2.8/lib/ polyglot.rb:68:in `require'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ active_support/dependencies.rb:156:in `block in require'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ active_support/dependencies.rb:521:in `new_constants_in'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ active_support/dependencies.rb:156:in `require'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/rails/ gem_dependency.rb:179:in `load'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/ initializer.rb:305:in `block in load_gems'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/ initializer.rb:305:in `each'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/ initializer.rb:305:in `load_gems'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/ initializer.rb:162:in `process'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/ initializer.rb:113:in `run'' /home/oren/nutrition/config/environment.rb:9:in `<top (required)>'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ active_support/dependencies.rb:156:in `require'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ active_support/dependencies.rb:156:in `block in require'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ active_support/dependencies.rb:521:in `new_constants_in'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ active_support/dependencies.rb:156:in `require'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/tasks/ misc.rake:4:in `block in <top (required)>'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 636:in `call'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 636:in `block in execute'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 631:in `each'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 631:in `execute'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 597:in `block in invoke_with_call_chain'' /opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in `mon_synchronize'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 590:in `invoke_with_call_chain'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 607:in `block in invoke_prerequisites'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 604:in `each'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 604:in `invoke_prerequisites'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 596:in `block in invoke_with_call_chain'' /opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in `mon_synchronize'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 590:in `invoke_with_call_chain'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 607:in `block in invoke_prerequisites'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 604:in `each'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 604:in `invoke_prerequisites'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 596:in `block in invoke_with_call_chain'' /opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in `mon_synchronize'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 590:in `invoke_with_call_chain'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 607:in `block in invoke_prerequisites'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 604:in `each'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 604:in `invoke_prerequisites'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 596:in `block in invoke_with_call_chain'' /opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in `mon_synchronize'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 590:in `invoke_with_call_chain'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 607:in `block in invoke_prerequisites'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 604:in `each'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 604:in `invoke_prerequisites'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 596:in `block in invoke_with_call_chain'' /opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in `mon_synchronize'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 590:in `invoke_with_call_chain'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 583:in `invoke'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 2051:in `invoke_task'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 2029:in `block (2 levels) in top_level'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 2029:in `each'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 2029:in `block in top_level'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 2068:in `standard_exception_handling'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 2023:in `top_level'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 2001:in `block in run'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 2068:in `standard_exception_handling'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 1998:in `run'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/bin/rake: 31:in `<top (required)>'' /opt/ruby/bin/rake:19:in `load'' /opt/ruby/bin/rake:19:in `<main>'' no such file to load -- rspec-rails /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/polyglot-0.2.8/lib/ polyglot.rb:68:in `require'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/polyglot-0.2.8/lib/ polyglot.rb:68:in `require'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ active_support/dependencies.rb:156:in `block in require'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ active_support/dependencies.rb:521:in `new_constants_in'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ active_support/dependencies.rb:156:in `require'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/rails/ gem_dependency.rb:179:in `load'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/ initializer.rb:305:in `block in load_gems'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/ initializer.rb:305:in `each'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/ initializer.rb:305:in `load_gems'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/ initializer.rb:167:in `process'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/ initializer.rb:113:in `run'' /home/oren/nutrition/config/environment.rb:9:in `<top (required)>'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ active_support/dependencies.rb:156:in `require'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ active_support/dependencies.rb:156:in `block in require'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ active_support/dependencies.rb:521:in `new_constants_in'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ active_support/dependencies.rb:156:in `require'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/tasks/ misc.rake:4:in `block in <top (required)>'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 636:in `call'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 636:in `block in execute'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 631:in `each'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 631:in `execute'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 597:in `block in invoke_with_call_chain'' /opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in `mon_synchronize'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 590:in `invoke_with_call_chain'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 607:in `block in invoke_prerequisites'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 604:in `each'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 604:in `invoke_prerequisites'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 596:in `block in invoke_with_call_chain'' /opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in `mon_synchronize'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 590:in `invoke_with_call_chain'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 607:in `block in invoke_prerequisites'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 604:in `each'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 604:in `invoke_prerequisites'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 596:in `block in invoke_with_call_chain'' /opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in `mon_synchronize'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 590:in `invoke_with_call_chain'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 607:in `block in invoke_prerequisites'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 604:in `each'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 604:in `invoke_prerequisites'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 596:in `block in invoke_with_call_chain'' /opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in `mon_synchronize'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 590:in `invoke_with_call_chain'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 607:in `block in invoke_prerequisites'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 604:in `each'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 604:in `invoke_prerequisites'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 596:in `block in invoke_with_call_chain'' /opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in `mon_synchronize'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 590:in `invoke_with_call_chain'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 583:in `invoke'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 2051:in `invoke_task'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 2029:in `block (2 levels) in top_level'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 2029:in `each'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 2029:in `block in top_level'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 2068:in `standard_exception_handling'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 2023:in `top_level'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 2001:in `block in run'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 2068:in `standard_exception_handling'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: 1998:in `run'' /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/bin/rake: 31:in `<top (required)>'' /opt/ruby/bin/rake:19:in `load'' /opt/ruby/bin/rake:19:in `<main>'' Missing these required gems: rspec-rails You''re running: ruby 1.9.1.243 at /opt/ruby-1.9.1-p243/bin/ruby rubygems 1.3.5 at /home/oren/.gem/ruby/1.9.1, /opt/ruby-1.9.1-p243/ lib/ruby/gems/1.9.1 thanks!
It''s exactly what it says. Do: gem install rspec-rails (or if you''re on a Mac, sudo gem install rspec-rails). On Aug 31, 2009, at 10:31 AM, oren wrote:> > i get the above error when running rake. > I tried switching rails 2.3.3 with 2.3.2 but it didn''t help. > > here are my gems: > actionmailer (2.3.2) > actionpack (2.3.2) > activerecord (2.3.2) > activeresource (2.3.2) > activesupport (2.3.2) > builder (2.1.2) > cucumber (0.3.98) > diff-lcs (1.1.2) > hoe (2.3.3) > nokogiri (1.3.3) > polyglot (0.2.8) > rack (1.0.0) > rails (2.3.2) > rake (0.8.7) > rspec (1.2.8) > rspec-rails (1.2.7.1) > rubyforge (1.0.4) > term-ansicolor (1.0.4) > test-unit (1.2.3) > treetop (1.3.0) > webrat (0.5.3) > > and here is the error after typing rake: > > no such file to load -- rspec-rails > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/polyglot-0.2.8/lib/ > polyglot.rb:68:in `require'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/polyglot-0.2.8/lib/ > polyglot.rb:68:in `require'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ > active_support/dependencies.rb:156:in `block in require'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ > active_support/dependencies.rb:521:in `new_constants_in'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ > active_support/dependencies.rb:156:in `require'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/rails/ > gem_dependency.rb:179:in `load'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/ > initializer.rb:305:in `block in load_gems'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/ > initializer.rb:305:in `each'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/ > initializer.rb:305:in `load_gems'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/ > initializer.rb:162:in `process'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/ > initializer.rb:113:in `run'' > /home/oren/nutrition/config/environment.rb:9:in `<top (required)>'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ > active_support/dependencies.rb:156:in `require'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ > active_support/dependencies.rb:156:in `block in require'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ > active_support/dependencies.rb:521:in `new_constants_in'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ > active_support/dependencies.rb:156:in `require'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/tasks/ > misc.rake:4:in `block in <top (required)>'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 636:in `call'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 636:in `block in execute'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 631:in `each'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 631:in `execute'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 597:in `block in invoke_with_call_chain'' > /opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in > `mon_synchronize'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 590:in `invoke_with_call_chain'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 607:in `block in invoke_prerequisites'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 604:in `each'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 604:in `invoke_prerequisites'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 596:in `block in invoke_with_call_chain'' > /opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in > `mon_synchronize'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 590:in `invoke_with_call_chain'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 607:in `block in invoke_prerequisites'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 604:in `each'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 604:in `invoke_prerequisites'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 596:in `block in invoke_with_call_chain'' > /opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in > `mon_synchronize'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 590:in `invoke_with_call_chain'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 607:in `block in invoke_prerequisites'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 604:in `each'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 604:in `invoke_prerequisites'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 596:in `block in invoke_with_call_chain'' > /opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in > `mon_synchronize'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 590:in `invoke_with_call_chain'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 607:in `block in invoke_prerequisites'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 604:in `each'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 604:in `invoke_prerequisites'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 596:in `block in invoke_with_call_chain'' > /opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in > `mon_synchronize'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 590:in `invoke_with_call_chain'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 583:in `invoke'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 2051:in `invoke_task'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 2029:in `block (2 levels) in top_level'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 2029:in `each'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 2029:in `block in top_level'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 2068:in `standard_exception_handling'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 2023:in `top_level'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 2001:in `block in run'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 2068:in `standard_exception_handling'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 1998:in `run'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/bin/rake: > 31:in `<top (required)>'' > /opt/ruby/bin/rake:19:in `load'' > /opt/ruby/bin/rake:19:in `<main>'' > no such file to load -- rspec-rails > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/polyglot-0.2.8/lib/ > polyglot.rb:68:in `require'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/polyglot-0.2.8/lib/ > polyglot.rb:68:in `require'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ > active_support/dependencies.rb:156:in `block in require'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ > active_support/dependencies.rb:521:in `new_constants_in'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ > active_support/dependencies.rb:156:in `require'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/rails/ > gem_dependency.rb:179:in `load'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/ > initializer.rb:305:in `block in load_gems'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/ > initializer.rb:305:in `each'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/ > initializer.rb:305:in `load_gems'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/ > initializer.rb:167:in `process'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/ > initializer.rb:113:in `run'' > /home/oren/nutrition/config/environment.rb:9:in `<top (required)>'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ > active_support/dependencies.rb:156:in `require'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ > active_support/dependencies.rb:156:in `block in require'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ > active_support/dependencies.rb:521:in `new_constants_in'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/ > active_support/dependencies.rb:156:in `require'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/tasks/ > misc.rake:4:in `block in <top (required)>'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 636:in `call'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 636:in `block in execute'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 631:in `each'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 631:in `execute'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 597:in `block in invoke_with_call_chain'' > /opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in > `mon_synchronize'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 590:in `invoke_with_call_chain'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 607:in `block in invoke_prerequisites'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 604:in `each'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 604:in `invoke_prerequisites'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 596:in `block in invoke_with_call_chain'' > /opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in > `mon_synchronize'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 590:in `invoke_with_call_chain'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 607:in `block in invoke_prerequisites'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 604:in `each'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 604:in `invoke_prerequisites'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 596:in `block in invoke_with_call_chain'' > /opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in > `mon_synchronize'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 590:in `invoke_with_call_chain'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 607:in `block in invoke_prerequisites'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 604:in `each'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 604:in `invoke_prerequisites'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 596:in `block in invoke_with_call_chain'' > /opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in > `mon_synchronize'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 590:in `invoke_with_call_chain'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 607:in `block in invoke_prerequisites'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 604:in `each'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 604:in `invoke_prerequisites'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 596:in `block in invoke_with_call_chain'' > /opt/ruby-1.9.1-p243/lib/ruby/1.9.1/monitor.rb:190:in > `mon_synchronize'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 590:in `invoke_with_call_chain'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 583:in `invoke'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 2051:in `invoke_task'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 2029:in `block (2 levels) in top_level'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 2029:in `each'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 2029:in `block in top_level'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 2068:in `standard_exception_handling'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 2023:in `top_level'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 2001:in `block in run'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 2068:in `standard_exception_handling'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb: > 1998:in `run'' > /opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/rake-0.8.7/bin/rake: > 31:in `<top (required)>'' > /opt/ruby/bin/rake:19:in `load'' > /opt/ruby/bin/rake:19:in `<main>'' > Missing these required gems: > rspec-rails > > You''re running: > ruby 1.9.1.243 at /opt/ruby-1.9.1-p243/bin/ruby > rubygems 1.3.5 at /home/oren/.gem/ruby/1.9.1, /opt/ruby-1.9.1-p243/ > lib/ruby/gems/1.9.1 > > thanks! > >
i already have it installed! actionmailer (2.3.2) actionpack (2.3.2) activerecord (2.3.2) activeresource (2.3.2) activesupport (2.3.2) builder (2.1.2) cucumber (0.3.98) diff-lcs (1.1.2) hoe (2.3.3) nokogiri (1.3.3) polyglot (0.2.8) rack (1.0.0) rails (2.3.2) rake (0.8.7) rspec (1.2.8) rspec-rails (1.2.7.1) rubyforge (1.0.4) term-ansicolor (1.0.4) test-unit (1.2.3) treetop (1.3.0) webrat (0.5.3)
i already have it installed! actionmailer (2.3.2) actionpack (2.3.2) activerecord (2.3.2) activeresource (2.3.2) activesupport (2.3.2) builder (2.1.2) cucumber (0.3.98) diff-lcs (1.1.2) hoe (2.3.3) nokogiri (1.3.3) polyglot (0.2.8) rack (1.0.0) rails (2.3.2) rake (0.8.7) rspec (1.2.8) rspec-rails (1.2.7.1) rubyforge (1.0.4) term-ansicolor (1.0.4) test-unit (1.2.3) treetop (1.3.0) webrat (0.5.3)
Pascal Friederich
2009-Sep-01 08:51 UTC
Re: "Missing these required gems: rspec-rails" in ruby 1.9
change the config.gem lines for rspec/rspec-rails in your test.rb to: config.gem "rspec", :lib => false config.gem "rspec-rails", :lib => false that should solve your problem
Oren Golan
2009-Sep-01 16:11 UTC
Re: "Missing these required gems: rspec-rails" in ruby 1.9
thank you, it works! what is the reason for this error? On Tue, Sep 1, 2009 at 1:51 AM, Pascal Friederich <paukul-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>wrote:> > change the config.gem lines for rspec/rspec-rails in your test.rb > to: > > config.gem "rspec", :lib => false > config.gem "rspec-rails", :lib => false > > that should solve your problem > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Pascal Friederich
2009-Sep-01 17:34 UTC
Re: "Missing these required gems: rspec-rails" in ruby 1.9
rails tries to require ''rspec'' and ''rspec-rails''. but the rspec library is ''spec'' and the rspec-rails is ''spec/rails''. :lib => ''spec'' / :lib => ''spec/rails'' would work too, but since you only want to load the rspec/rails libs when you are actually running specs, and you usually require ''spec/rails'' in your spec_helper.rb anyway, you can use :lib => false so rails doesn''t require the rspec libs at all. On 1 Sep., 18:11, Oren Golan <orengo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> thank you, it works! > what is the reason for this error? > > On Tue, Sep 1, 2009 at 1:51 AM, Pascal Friederich <pau...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>wrote: > > > > > > > change the config.gem lines for rspec/rspec-rails in your test.rb > > to: > > > config.gem "rspec", :lib => false > > config.gem "rspec-rails", :lib => false > > > that should solve your problem
thank you! On Sep 1, 10:34 am, Pascal Friederich <pau...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> rails tries to require ''rspec'' and ''rspec-rails''. but the rspec > library is ''spec'' and the rspec-rails is ''spec/rails''. :lib => > ''spec'' / :lib => ''spec/rails'' would work too, > but since you only want to load the rspec/rails libs when you are > actually running specs, and you usually require ''spec/rails'' in your > spec_helper.rb anyway, you can use :lib => false so rails doesn''t > require the rspec libs at all. > > On 1 Sep., 18:11, Oren Golan <orengo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > thank you, it works! > > what is the reason for this error? > > > On Tue, Sep 1, 2009 at 1:51 AM, Pascal Friederich <pau...-gM/Ye1E23myhRSP0FMvGiw@public.gmane.orgm>wrote: > > > > change the config.gem lines for rspec/rspec-rails in your test.rb > > > to: > > > > config.gem "rspec", :lib => false > > > config.gem "rspec-rails", :lib => false > > > > that should solve your problem
Seemingly Similar Threads
- dashboard: rake install fails (Solaris10)
- wrong argument type Mysql (expected Struct) running rake with Ruby 1.9 / Rails 2.3.3
- Multiple Errors with RRD and Rake
- Upgrading to Rails 3.1
- Speed bumps on the way to successfully running puppetmasterd on Mac OSX Leopard, try one and two