本文介绍了无法启动SOLR服务器(Ruby on Rails)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的Rails3应用程序中使用sunspot_rails和sunspot gems,并按照在,我无法让我的太阳黑子服务器运行。

I'm using sunspot_rails and sunspot gems in my Rails3 application and following the steps to installing sunspot on https://github.com/outoftime/sunspot, I cannot get my sunspot server to run.

当我进入我的目录时,运行bundler然后运行 rake sunspot:solr:start 我得到以下错误

When I enter my directory, run bundler and then run rake sunspot:solr:start I get the following error

Emil@Emil-PC /cygdrive/c/work/pilarhq
$ rake sunspot:solr:start
(in /cygdrive/c/work/pilarhq)
DEPRECATION WARNING: You are using the old router DSL which will be removed in R
ails 3.1. Please check how to update your routes file at: http://www.engineyard.
com/blog/2010/the-lowdown-on-routes-in-rails-3/. (called from /cygdrive/c/work/p
ilarhq/config/routes.rb:1)
      2 [main] ruby 4824 C:\cygwin\bin\ruby.exe: *** fatal error - unable to rem
ap C:\cygwin\bin\cyglber-2-3-0.dll to same address as parent: 0x360000 != 0x3800
00
Stack trace:
Frame     Function  Args
023F9538  6102749B  (023F9538, 00000000, 00000000, 00000000)
023F9828  6102749B  (61177B80, 00008000, 00000000, 61179977)
023FA858  61004AFB  (611A136C, 6123FF54, 00360000, 00380000)
End of stack trace
      2 [main] ruby 4500 C:\cygwin\bin\ruby.exe: *** fatal error - unable to rem
ap C:\cygwin\bin\cyglber-2-3-0.dll to same address as parent: 0x360000 != 0x3E00
00
Stack trace:
Frame     Function  Args
023FB0F8  6102749B  (023FB0F8, 00000000, 00000000, 00000000)
023FB3E8  6102749B  (61177B80, 00008000, 00000000, 61179977)
023FC418  61004AFB  (611A136C, 6123FF54, 00360000, 003E0000)
End of stack trace
      2 [main] ruby 4612 fork: child 4824 - died waiting for dll loading, errno
11
      4 [main] ruby 580 fork: child 4500 - died waiting for dll loading, errno 1
1
/usr/lib/ruby/gems/1.8/gems/sunspot-1.2.0/lib/sunspot/server.rb:42:in `fork': Re
source temporarily unavailable - fork(2) (rake aborted!Errno::EAGAIN)

Resource temporarily unavailable - fork(2)      from /usr/lib/ruby/gems/1.8/gems
/sunspot-1.2.0/lib/sunspot/server.rb:42:in `start'
$
in `fork'
        from /usr/lib/ruby/gems/1.8/gems/sunspot-1.2.0/lib/sunspot/server.rb:41:
in `start'
        from /usr/lib/ruby/gems/1.8/gems/sunspot_rails-1.2.0/lib/sunspot/rails/s
erver.rb:10:in `start'
        from /usr/lib/ruby/gems/1.8/gems/sunspot_rails-1.2.0/lib/sunspot/rails/t
asks.rb:8
        from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
        from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'

        from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
        from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'

        from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_w
ith_call_chain'
        from /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
        from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_w
ith_call_chain'ygdrive/c/work/pilarhq
$       from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
        from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_
task'
        from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_lev
el'
        from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
        from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_lev
el'
        from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standar
d_exception_handling'
        from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_lev
el'
        from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
        from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standar
d_exception_handling'
        from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
        from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
        from /usr/bin/rake:19:in `load'
        from /usr/bin/rake:19

(我在Windows机器上使用Cygwin ...如果这有帮助)

(I'm using Cygwin on a Windows machine...if that helps)

推荐答案

已找到,必须执行以下操作:

I have found http://www.garethhunt.com/2008/02/11/cygwin-died-waiting-for-dll-loading/ and had to do the following:


  1. 关闭所有cygwin窗口

  2. 从Run(Win-R)调用c:\cygwin\usr\bin\ash

  3. 从中调用 rebaseall

  1. close all cygwin windows
  2. call c:\cygwin\usr\bin\ash from Run (Win-R)
  3. call rebaseall from therein

这篇关于无法启动SOLR服务器(Ruby on Rails)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-04 16:36