认为狮身人面像找不到狮身人面像
我正在尝试通过思考-sphinx 的方式制作一个使用Sphinx 的Rails 3 应用程序。在我的 Gemfile 中:
gem 'thinking-sphinx', '2.0.10'
当我做 Rails 服务器时,这是我得到的错误:
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:
bin_path: "/usr/local/bin"
searchd_binary_name: "/usr/local/bin/searchd"
indexer_binary_name: "/usr/local/bin/indexer"
test:
bin_path: "/usr/local/bin"
searchd_binary_name: "/usr/local/bin/searchd"
indexer_binary_name: "/usr/local/bin/indexer"
production:
bin_path: "/usr/local/bin"
searchd_binary_name: "/usr/local/bin/searchd"
indexer_binary_name: "/usr/local/bin/indexer"
I'm trying to make a Rails 3 application that uses Sphinx by way of thinking-sphinx. In my Gemfile:
gem 'thinking-sphinx', '2.0.10'
When I do a rails server, here's the error I get:
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
Any ideas for how I can fix this? I've tried making a sphinx.yml file but it still doesn't help:
development:
bin_path: "/usr/local/bin"
searchd_binary_name: "/usr/local/bin/searchd"
indexer_binary_name: "/usr/local/bin/indexer"
test:
bin_path: "/usr/local/bin"
searchd_binary_name: "/usr/local/bin/searchd"
indexer_binary_name: "/usr/local/bin/indexer"
production:
bin_path: "/usr/local/bin"
searchd_binary_name: "/usr/local/bin/searchd"
indexer_binary_name: "/usr/local/bin/indexer"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
事实证明,这是 Sphinx 未正确安装时发生的错误,这就是问题所在。
Turns out this is an error that occurs when Sphinx isn't properly installed, which was the problem.
Thinking Sphinx 的 2.x 版本可与 Rails 3.0 配合使用 - 不过我建议您也升级到最新的 Rails 3.0.x 版本,这样您就可以获得大部分最新的安全修复程序。
2.x releases of Thinking Sphinx work with Rails 3.0 - though I'd recommend also upgrading to the latest 3.0.x release of Rails so you've got most of the latest security fixes.