我正在尝试将太阳黑子与 Rails 4 一起使用,但遇到了一些问题。当我只有gem 'sunspot_rails', '2.0.0'
在我的 gemfile 中时,我收到此错误:
Note: This task has been moved to the sunspot_solr gem. To install, start and
stop a local Solr instance, please add sunspot_solr to your Gemfile:
group :development do
gem 'sunspot_solr'
end
但是当我添加那个gem(也是v 2.0.0)时,我得到了这个错误:
rake aborted!
Don't know how to build task 'sunspot:solr:start'
/home/toasty/.rvm/gems/ruby-2.0.0-p195/bin/ruby_noexec_wrapper:14:in `eval'
/home/toasty/.rvm/gems/ruby-2.0.0-p195/bin/ruby_noexec_wrapper:14:in `<main>'
(See full trace by running task with --trace)
我见过这个问题: Sunspot/Solr raketasks not loading in Rails 3 Mountable Engine 但在我的情况下似乎不起作用。有没有人有任何想法?sunspot_solr 与 rails 4 不兼容吗?