The error I'm getting with the thinking-sphinx 2.1.0 gem is:
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
sh: searchd: command not found
Failed to start searchd daemon. Check /var/log/searchd.log.
Failed to start searchd daemon. Check /var/log/searchd.log
Be sure to run thinking_sphinx:index before thinking_sphinx:start
Search log is empty
and when I try to manually run rake task from bash I get:
rake aborted!
Unable to activate thinking-sphinx-2.0.10, because activerecord-2.3.9 conflicts with activerecord (>= 3.0.3)
activerecord 3.0.3 downloaded with the thinking-sphinx gem 2.0.9 automatically.
I have tried almost every version of thinking sphinx, sphinx and riddle and just get various errors with every attempt.
Sphinx runs great from a bash command line, but no go from the rake tasks. I have tried the plugin, but that just throws a different set of errors. I am hoping someone knows of a combination of rails / riddle / thinking-sphinx and or sphinx versions on mac lion, if mac version even matters.
And my current conf is as follows:
development:
bin_path: /usr/local/Cellar/sphinx/0.9.9/bin
searchd_binary_name: searchd
indexer_binary_name: indexer
enable_star: true
enable_star: true
morphology: stem_en
html_strip: true
min_infix_len: 3
port: 9310
sql_range_step: 10000000
min_infix_len: 3
Thanks much in advance for any advice.
/usr/local/Cellar/sphinx/0.9.9/bin
The 2.x releases of Thinking Sphinx are for Rails 3.x - you should try the latest 1.4 release of TS instead (1.4.10). Not sure if that'll fix the warning message, but it's definitely going to be a good step forward.
Actually, just reading Cody's email - his suggestion should sort the warning out. An alternative is to add that bin path as the bin_path setting in config/sphinx.yml under the development environment settings (you'll need to create the file if you haven't already, and the structure is much like database.yml).
Let us know how you go.
Cheers
--
Pat
> --
> You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/thinking-sphinx/-/1ksTVaXR_EEJ.
> To post to this group, send email to thinkin...@googlegroups.com.
> To unsubscribe from this group, send email to thinking-sphi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
Not sure if you're firing the rake task always through netbeans or through the command line - it's best to use the command line. As for the user, it's whichever account you're currently using - so, very likely your own, given the paths in the generated configuration.
Also: you're sharing database passwords with us - might want to change that - and the file likely hasn't changed, given it can't even find the rake task. Can you share the contents of your Rakefile with us?
--
Pat
> --
> You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/thinking-sphinx/-/A6FjGsnjy1YJ.
--
Pat
On 16/11/2011, at 8:36 AM, Stan Malone wrote:
> I removed some lines in my sphinx.yml and it fixed it. Still not sure why it didn't work on the production box and it does locally. But at least it's running.
>
> --
> You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/thinking-sphinx/-/eERe7JYkxksJ.