5

मैंने अभी स्रोत डाउनलोड करने वाले स्फिंक्स (distro: archlinux) स्थापित किया है। फिर मैंने रेल के लिए "थिंकिंग स्पिंक्स" प्लगइन स्थापित किया।रेल के साथ सोच स्फिंक्स चलाने में समस्या 2.3.5

मैं official page setup और this Screencast from Ryan Bates पीछा किया, लेकिन जब मैं सूचकांक मॉडल करने की कोशिश यह मुझे इस त्रुटि देता है:

$ rake thinking_sphinx:index 
(in /home/benoror/Dropbox/Proyectos/cotizahoy) 

Sphinx cannot be found on your system. You may need to configure the following 
settings in your config/sphinx.yml file: 
    * bin_path 
    * searchd_binary_name 
    * indexer_binary_name 

For more information, read the documentation: 
http://freelancing-god.github.com/ts/en/advanced_config.html 
Generating Configuration to /home/benoror/Dropbox/Proyectos/cotizahoy/config/development.sphinx.conf 
sh: indexer: command not found 

मैं मैन्युअल डेमॉन शुरू करने की कोशिश की (/ usr/bin/स्फिंक्स-searchd), बदलते config/sphinx.yml फ़ाइल:

devlopment: 
searchd_binary_name: sphinx-searchd 
indexer_binary_name: sphinx-indexer 

लेकिन यह एक ही त्रुटि दिखाता है, किसी भी विचार?

उत्तर

7

आप अपने YAML फ़ाइल में विन्यस्त करने की जरूरत bin_path: /usr/bin/sphinx-searchd

+2

मेरे पास उचित बिन पथ है। लेकिन फिर भी यह एक ही त्रुटि दिखा रहा है –

3

किसी स्फिंक्स प्राप्त करने की कोशिश के लिए और खिड़कियों पर काम कर thinking_sphinx, अपने

config/sphinx.yml 

कुछ इस तरह दिखना चाहिए:

development: 
    bin_path: "C:/Sphinx/bin" 
0

ऐसी समस्याएं हैं जो समस्या को हल करने में मदद करती हैं। सबसे पहले, थिंकिंग स्फिंक्स प्लगइन/मणि संस्करण को अपडेट करना उपयोगी है। मुझे थिंकिंगस्फिनक्स के पुराने संस्करण (1.3.16) के साथ यह समस्या थी। रेल 2, 1.4.11 के लिए नवीनतम संस्करण के अपडेट के बाद, चेतावनियों की संख्या छोटी थी। आप rake thinking_sphinx:version के साथ वर्तमान संस्करण निर्धारित कर सकते हैं। इसके साथ

curl -L https://github.com/freelancing-god/thinking-sphinx/tarball/v1.4.11 \ 
    -o thinking-sphinx.tar.gz 
tar -xvf thinking-sphinx.tar.gz -C plugins 
mv plugins/* your_project/vendor/plugins/thinking-sphinx 

दूसरा प्लगइन संस्करण को अद्यतन करने के लिए संभव है, यह अक्सर उपयोगी विन्यास फाइल में सोच रही थी स्फिंक्स प्लगइन/मणि के संस्करण निर्दिष्ट करने, खासकर अगर Sphinx is running on a remote server है और ThinkingSphinx प्लगइन निर्धारित नहीं कर सकता जो स्फिंक्स संस्करण स्थानीय रूप से चल रहा है।

production: 
    .. 
    version: 2.0.4 # Version of Sphinx on remote server 192.168.1.4 
    port: 9312 
    address: 192.168.1.4