我使用railsinstaller将rails安装到OS Windows中。 为了使用项目我使用Aptana。我想在我的项目中使用gem“thinking-sphinx”,“〜> 2.0.13”。
当我开始索引时 - rake thinking_sphinx:index - 我有一个错误
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
Sphinx.yml
development:
port: 9312
config_file: "RAILS_ROOT/config/development.sphinx.conf"
searchd_log_file: "RAILS_ROOT/log/searchd.log"
query_log_file: "RAILS_ROOT/log/searchd.query.log"
pid_file: "RAILS_ROOT/log/searchd.development.pid"
bin_path: '/usr/local/bin'
searchd_binary_name: 'searchd'
indexer_binary_name: 'indexer'
test:
port: 9313
production:
port: 9312
如何在Windows中通过gem使用sphinx?
答案 0 :(得分:2)
Sphinx不是一个宝石,而是一个单独的程序,认为sphinx是一个接口。
Windows安装ripon说明位于sphinx网站上 - http://sphinxsearch.com/docs/1.10/installing-windows.html