C:\Users\project1>rake sunspot:solr:run --trace
DEPRECATED! (configure_from_yaml) Please stop using YAML and use Ruby instead. T
his method will be removed in 2.9.
** Invoke sunspot:solr:run (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute sunspot:solr:run
The syntax of the command is incorrect.
rake aborted!
You need a Java Runtime Environment to run the Solr server
Fix:
Modify C:\Ruby192\lib\ruby\gems\1.9.1\gems\sunspot_solr-1.3.0\lib\sunspot\solr\java.rb file with
module Sunspot
module Solr
module Java
def self.installed?
true
end
end
end
end
Also make sure your gemfile has:
gem 'sunspot_rails'
# This is an optional packaged Solr:
group :test, :development do
gem 'sunspot_solr'
end
Reference Links:
https://github.com/sunspot/sunspot/issues/147
DEPRECATED! (configure_from_yaml) Please stop using YAML and use Ruby instead. T
his method will be removed in 2.9.
** Invoke sunspot:solr:run (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute sunspot:solr:run
The syntax of the command is incorrect.
rake aborted!
You need a Java Runtime Environment to run the Solr server
Fix:
Modify C:\Ruby192\lib\ruby\gems\1.9.1\gems\sunspot_solr-1.3.0\lib\sunspot\solr\java.rb file with
module Sunspot
module Solr
module Java
def self.installed?
true
end
end
end
end
Also make sure your gemfile has:
gem 'sunspot_rails'
# This is an optional packaged Solr:
group :test, :development do
gem 'sunspot_solr'
end
Reference Links:
https://github.com/sunspot/sunspot/issues/147
No comments:
Post a Comment