使用 Rails 2.3.5 运行 Thinking Sphinx 时出现问题 [英] Problem running Thinking Sphinx with Rails 2.3.5
问题描述
我刚刚安装了 Sphinx(发行版:archlinux)并下载了源代码.然后我为 Rails 安装了Thinking Sphinx"插件.
I just installed Sphinx (distro: archlinux) downloading the source. Then I installed "Thinking Sphinx" plugin for Rails.
我遵循了官方页面设置和Ryan Bates 的这个截屏视频,但是当我尝试索引模型时,它给了我这个错误:>
I followed the official page setup and this Screencast from Ryan Bates, but when I try to index the models it gives me this error:
$ 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/sphinx-searchd),更改 config/sphinx.yml 文件:
I tried starting the daemon manually (/usr/bin/sphinx-searchd), changing the config/sphinx.yml file:
devlopment:
searchd_binary_name: sphinx-searchd
indexer_binary_name: sphinx-indexer
但它显示了同样的错误,有什么想法吗?
But it shows the same error, any ideas ?
推荐答案
你需要在你的 yaml 文件中配置 bin_path:/usr/bin/sphinx-searchd
you need to configure in your yaml file bin_path: /usr/bin/sphinx-searchd
这篇关于使用 Rails 2.3.5 运行 Thinking Sphinx 时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!