运行思考Sphinx与Rails 2.3.5的问题

Ben*_*zco 5 ruby sphinx ruby-on-rails thinking-sphinx ruby-on-rails-plugins

我刚刚安装了Sphinx(发行版:archlinux)下载源代码.然后我为Rails安装了"Thinking Sphinx"插件.

我按照官方页面设置来自Ryan Bates的这个Screencast,但是当我尝试索引模型时,它给了我这个错误:

$ 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
Run Code Online (Sandbox Code Playgroud)

我尝试手动启动守护进程(/ usr/bin/sphinx-searchd),更改config/sphinx.yml文件:

devlopment:
searchd_binary_name: sphinx-searchd
indexer_binary_name: sphinx-indexer
Run Code Online (Sandbox Code Playgroud)

但它显示了同样的错误,任何想法?

Mat*_*ord 7

你需要在你的yaml文件中配置 bin_path: /usr/bin/sphinx-searchd

  • 我有适当的bin路径.但仍然显示相同的错误 (2认同)