gpt4 book ai didi

sunspot-rails - 在带导轨的 window 上运行的太阳黑子

转载 作者:行者123 更新时间:2023-12-04 07:41:01 24 4
gpt4 key购买 nike

我按照说明安装了 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:run
The syntax of the command is incorrect.
rake aborted!
You need a Java Runtime Environment to run the Solr server
C:/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。
太阳黑子不会在 window 上运行?

最佳答案

解决了..

以为是java问题,但即使我安装了java它也不起作用。

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

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

由于 bundler 显然没有给我取到最新的,我手动更改了它,现在它可以工作了..

关于sunspot-rails - 在带导轨的 window 上运行的太阳黑子,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9036903/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com