Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem running Thinking Sphinx with Rails 2.3.5

I just installed Sphinx (distro: archlinux) downloading the source. Then I installed "Thinking Sphinx" plugin for Rails.

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

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 ?

like image 369
Ben Orozco Avatar asked Apr 26 '10 17:04

Ben Orozco


2 Answers

you need to configure in your yaml file bin_path: /usr/bin/sphinx-searchd

like image 177
MatthewFord Avatar answered Nov 01 '22 08:11

MatthewFord


For anybody trying to get Sphinx and thinking_sphinx working on windows, your

config/sphinx.yml

should look something like this:

development:
  bin_path: "C:/Sphinx/bin"
like image 22
Justin Tanner Avatar answered Nov 01 '22 09:11

Justin Tanner