'gem install searchlogic'之后无法打开'rails console'

时间:2011-07-06 13:34:01

标签: ruby-on-rails-3 gem searchlogic

lhdgriver@lhdgriver-1015PW:~/prog/social$ bundle show searchlogic
/home/lhdgriver/.rvm/gems/ruby-1.9.2-p180/gems/searchlogic-2.4.28


lhdgriver@lhdgriver-1015PW:~/prog/social$ rails console
/home/lhdgriver/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.6/lib/active_support/core_ext/module/aliasing.rb:31:in `alias_method': undefined method `merge_joins' for class `Class' (NameError)
    from /home/lhdgriver/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.6/lib/active_support/core_ext/module/aliasing.rb:31:in `alias_method_chain'
    from /home/lhdgriver/.rvm/gems/ruby-1.9.2-p180/gems/searchlogic-2.4.28/lib/searchlogic/active_record/consistency.rb:8:in `block in included'
    from /home/lhdgriver/.rvm/gems/ruby-1.9.2-p180/gems/searchlogic-2.4.28/lib/searchlogic/active_record/consistency.rb:7:in `class_eval'
    from /home/lhdgriver/.rvm/gems/ruby-1.9.2-p180/gems/searchlogic-2.4.28/lib/searchlogic/active_record/consistency.rb:7:in `included'
    from /home/lhdgriver/.rvm/gems/ruby-1.9.2-p180/gems/searchlogic-2.4.28/lib/searchlogic.rb:34:in `include'
    from /home/lhdgriver/.rvm/gems/ruby-1.9.2-p180/gems/searchlogic-2.4.28/lib/searchlogic.rb:34:in `singletonclass'
    from /home/lhdgriver/.rvm/gems/ruby-1.9.2-p180/gems/searchlogic-2.4.28/lib/searchlogic.rb:34:in `<class:Base>'
    from /home/lhdgriver/.rvm/gems/ruby-1.9.2-p180/gems/searchlogic-2.4.28/lib/searchlogic.rb:33:in `<module:ActiveRecord>'
    from /home/lhdgriver/.rvm/gems/ruby-1.9.2-p180/gems/searchlogic-2.4.28/lib/searchlogic.rb:26:in `<top (required)>'
    from /home/lhdgriver/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require'
    from /home/lhdgriver/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
    from /home/lhdgriver/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `each'
    from /home/lhdgriver/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `block in require'
    from /home/lhdgriver/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `each'
    from /home/lhdgriver/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `require'
    from /home/lhdgriver/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler.rb:120:in `require'
    from /home/lhdgriver/prog/social/config/application.rb:7:in `<top (required)>'
    from /home/lhdgriver/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.6/lib/rails/commands.rb:21:in `require'
    from /home/lhdgriver/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.6/lib/rails/commands.rb:21:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

我没有遇到过这个错误,但是通常使用sudo bundle安装这种问题就会消失。