在Lion、Rails 2.3.9、sphinx 0.9.9和Ruby 1.8.7上使用哪个版本的thinking-sp



我在思考-sphinx 2.1.0 gem时得到的错误是:

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

搜索日志为空

和当我尝试手动运行rake任务从bash我得到:

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与thinking-sphinx gem 2.0.9一起自动下载。

我已经尝试了几乎所有版本的思维sphinx和sphinx,只是得到各种各样的错误与每次尝试。

Sphinx在bash命令行中运行得很好,但在rake任务中就不行了。我已经尝试了插件,但这只是抛出了一组不同的错误。我希望有人知道rails/riddle/thinking-sphinx和/或sphinx版本在mac lion上的组合,如果mac版本甚至重要。

我的当前配置如下:

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

提前感谢您的建议

也在邮件列表中回答了这个问题,但只是对其他遇到它的人来说- 1.4.10是使用TS的正确版本(2。Thinking Sphinx的x版本适用于Rails 3.x)。

最新更新