5

소스를 다운로드 한 스핑크스 (distro : archlinux)를 설치했습니다. 그런 다음 Rails 용 "Thinking Sphinx"플러그인을 설치했습니다. Thinking Sphinx with Rails 2.3.5

은 내가 official page setupthis 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/빈/스핑크스 - searchd) 수동으로 데몬을 시작 시도 config/sphinx.yml 파일 :

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

그러나 동일한 오류, 어떤 아이디어가 표시됩니까?

답변

7

당신은 당신의 YAML 파일에 구성 할 필요가 스핑크스를 얻으려고 사람을 위해 bin_path: /usr/bin/sphinx-searchd

+2

올바른 bin 경로가 있습니다. 하지만 여전히 같은 오류를 보여주는 –

3

및 Windows 작업 thinking_sphinx, 당신의

config/sphinx.yml 

같은 것을 보일 것입니다 :

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

을 문제를 해결하는 데 도움이되는 두 가지가 있습니다. 첫째, Thinking Sphinx 플러그인/gem 버전을 업데이트하는 것이 좋습니다. ThinkingSphinx의 이전 버전 (1.3.16)에서이 문제가 발생했습니다. Rails 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