每次我尝试在Mac OSX Snow Leopard上使用Rails 3运行Sphinx 2.0.1时,都会出现以下错误:
Failed to start searchd daemon. Check /Users/.../log/searchd.log. Failed to start searchd daemon. Check /Users/.../log/searchd.log
那是我的回溯
>
Sphinx 2.0.1-beta(r2792)
Program compiled with gcc 4.2.1
Host OS is Darwin ...s-macbook-pro.local 10.7.0 Darwin Kernel Version 10.7.0: Sat Jan 29 15:17:16 PST 2011; root:xnu-1504.9.37~1/RELEASE_I386 i386
Stack bottom = 0x7fff5fbfef1f, thread stack size = 0x12000
begin of manual backtrace:
Something wrong with thread stack, backtrace may be incorrect (fp=7fff5fbfc7a0)
Stack looks OK, attempting backtrace.
10000407f
5fbfe14000000000
7fff5fbfc960
100054a5f
100001dc8
4
Something wrong in frame pointers, backtrace failed (fp=0)
begin of system backtrace:
begin of system symbols:
0 searchd 0x000000010015d697 _Z12sphBacktraceib
+ 679
1 searchd 0x000000010000407f
_ZN16SphCrashLogger_c11HandleCrashEi + 415
2 libSystem.B.dylib 0x00007fff83ae666a _sigtramp + 26
3 ??? 0x00007fff5fbfc960 0x0 + 140734799792480
4 searchd 0x0000000100054a5f main + 95
5 searchd 0x0000000100001dc8 start + 52
6 ??? 0x0000000000000004 0x0 + 4
有没有人碰到这个?有谁知道发生了什么?以及如何解决这个问题?
答案 0 :(得分:4)
Sphinx 2.0.1在OS X上不起作用 - 您需要获取2.0.2-dev的源代码:
svn co http://sphinxsearch.googlecode.com/svn/trunk sphinx-read-only
答案 1 :(得分:1)
一个月前我遇到了同样的问题。
你可以尝试
ps -ef | grep searchd
终止正在运行的进程,然后从项目目录中删除。
rake ts:index
rake ts:start
Ps:我回到0.9.9发布,但这解决了我朋友的机器上的问题,但不是我的。