2011-06-19 4 views
3

Chaque fois que je tente de lancer Sphinx 2.0.1 avec Rails 3 sur Mac OS X Snow Leopard, je reçois l'erreur suivante:Thinking rails sphinx ne fonctionne pas

Failed to start searchd daemon. Check /Users/.../log/searchd.log. 
Failed to start searchd daemon. Check /Users/.../log/searchd.log 

Et c'est mon backtrace

> 

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 

Quelqu'un a-t-il rencontré ce problème? Est-ce que quelqu'un sait ce qui se passe? Et comment résoudre cela?

Répondre

4

Sphinx 2.0.1 ne fonctionne pas sur OS X - vous voulez saisir la source 2.0.2-dev place:

svn co http://sphinxsearch.googlecode.com/svn/trunk sphinx-read-only 
+0

A travaillé! Merci! – mabounassif

+0

J'ai dépensé tant d'efforts pour trouver ça, merci beaucoup! – kilonet

+0

Cela ne fonctionnait pas pour moi sur OS X, exécuter 'make' sur le tronc m'a donné l'erreur" pthread_mutex_timedlock n'a pas été déclaré dans cette portée ". Une recherche google apparaît [ce fil] (http://www.orocos.org/forum/rtt/rtt-dev/bug-684-new-trunk-fails-build-mac-pthreadmutextimedlock-not-available), où Quelqu'un mentionne que c'est corrigé dans la révision 30387. Cependant, lorsque je navigue sur [trunk] (http://sphinxsearch.googlecode.com/svn/trunk), la révision la plus récente est 2888. Tout le monde a un aperçu sur la résolution de cette erreur pour 2.0.2 -dev sur OS X? –

1

Je recevais même question il y a un mois.

vous pouvez essayer

ps -ef | grep searchd 

Tuez les processus en cours et depuis le répertoire du projet.

rake ts:index 
    rake ts:start 

Ps: Je retourne à 0.9.9 libération, mais ce problème résolu sur la machine de mon ami, mais pas le mien.

Questions connexes