sunspot-rails – 在带有轨道的窗户上运行的太阳黑子

sunspot-rails – 在带有轨道的窗户上运行的太阳黑子,第1张

概述我按照说明安装了sunspot_rails gem 当我做 bundle exec rake sunspot:solr:start 它告诉我 This command is not supported on i386-mingw32. Use rake sunspot:solr:run to run Solr in the foreground. 当我使用那个命令时,我得到了 ** Invoke 我按照说明安装了sunspot_rails gem

当我做

bundle exec rake sunspot:solr:start

它告诉我

This command is not supported on i386-mingw32. Use rake sunspot:solr:run to run Solr in the foreground.

当我使用那个命令时,我得到了

** Invoke sunspot:solr:run (first_time)** Invoke environment (first_time)** Execute environment** Execute sunspot:solr:runThe Syntax of the command is incorrect.rake aborted!You need a Java Runtime Environment to run the Solr serverC:/Ruby192/lib/ruby/gems/1.9.1/gems/sunspot_solr-1.3.0/lib/sunspot/solr/server.rb:202:in `ensure_java_installed'C:/Ruby192/lib/ruby/gems/1.9.1/gems/sunspot_solr-1.3.0/lib/sunspot/solr/server.rb:27:in `initialize'C:/Ruby192/lib/ruby/gems/1.9.1/gems/sunspot_solr-1.3.0/lib/sunspot/solr/tasks.rb:23:in `new'C:/Ruby192/lib/ruby/gems/1.9.1/gems/sunspot_solr-1.3.0/lib/sunspot/solr/tasks.rb:23:in `block (3 levels) in <top (required)>'C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'C:/Ruby192/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'C:/Ruby192/lib/ruby/gems/1.9.1/bin/rake:19:in `load'C:/Ruby192/lib/ruby/gems/1.9.1/bin/rake:19:in `<main>'Tasks: top => sunspot:solr:run

我正在运行windows 7 x64.
太阳黑子不会在windows上运行?

解决方法 解决了..

认为这是一个java问题,但即使在我安装java后它也无法正常工作.

我找到了答案(显然不应该是最新推出太阳黑子的问题..)

最新的推动解决了这个问题
https://github.com/sunspot/sunspot/commit/721d3419492852533764d58f2c7f398687891a94

因为捆绑器显然没有取给我最新的,我手动更改它现在可以工作..

总结

以上是内存溢出为你收集整理的sunspot-rails – 在带有轨道窗户上运行的太阳黑子全部内容,希望文章能够帮你解决sunspot-rails – 在带有轨道的窗户上运行的太阳黑子所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://www.outofmemory.cn/langs/1267096.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-08
下一篇 2022-06-08

发表评论

登录后才能评论

评论列表(0条)

保存