2013-03-27 2 views
1

내가 bundle exec rake db:initial_setup 실행하고, 오류가 발생합니다정의되지 않은 메서드 보석에 대한 '수색자'모듈

레이크 중단! 정의되지 않은 메소드`searcher 'for Gem : Module.

어떻게 해결할 수 있습니까? --trace

rake aborted! 
undefined method `searcher' for Gem:Module 
/home/jesse/workspace/canvas/lib/tasks/hair_trigger.rake:2:in `<top (required)>' 
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.17/lib/active_support/dependencies.rb:171:in `load' 
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.17/lib/active_support/dependencies.rb:171:in `block in load_with_new_constant_marking' 
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.17/lib/active_support/dependencies.rb:547:in `new_constants_in' 
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.17/lib/active_support/dependencies.rb:171:in `load_with_new_constant_marking' 
/usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.17/lib/tasks/rails.rb:14:in `block in <top (required)>' 
/usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.17/lib/tasks/rails.rb:14:in `each' 
/usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.17/lib/tasks/rails.rb:14:in `<top (required)>' 
/home/jesse/workspace/canvas/Rakefile:10:in `require' 
/home/jesse/workspace/canvas/Rakefile:10:in `<top (required)>' 
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/rake_module.rb:25:in `load' 
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/rake_module.rb:25:in `load_rakefile' 
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/application.rb:604:in `raw_load_rakefile' 
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/application.rb:89:in `block in load_rakefile' 
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/application.rb:160:in `standard_exception_handling' 
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/application.rb:88:in `load_rakefile' 
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/application.rb:72:in `block in run' 
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/application.rb:160:in `standard_exception_handling' 
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/application.rb:70:in `run' 
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.6/bin/rake:37:in `<top (required)>' 
/usr/local/bin/rake:23:in `load' 
/usr/local/bin/rake:23:in `<main>' 

어떤 조언을 initial_setup :

그리고 여기가 번들 간부 레이크 dB의 출력입니까?

감사합니다.

+0

실행'rake'를 사용하여 다시 이전의 모든 버전으로 얻을 수있는 명령

$ gem -v 

를 사용하여 versiob을 확인 여기 출력. –

+0

출력은 다음과 같습니다. rake aborted! 이미 rake 10.0.3을 활성화했지만, gemfile은 rake 0.9.6이 필요합니다. bundle exec를 사용하면이 문제를 해결할 수 있습니다. 그래서 레이크없이 번들 임원을 사용합니까? –

답변

3

Gem.searcher가 더 이상 사용되지 않아서 최근에 루비 보석을 업데이트 한 것 같습니다. 당신은 전체 스택 추적 후 게시물을 얻을 --trace``으로 명령을

$ rvm rubygems 1.8.24 
관련 문제