认为狮身人面像找不到狮身人面像

发布于 2024-12-29 10:18:57 字数 854 浏览 4 评论 0原文

我正在尝试通过思考-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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

楠木可依 2025-01-05 10:18:57

事实证明,这是 Sphinx 未正确安装时发生的错误,这就是问题所在。

Turns out this is an error that occurs when Sphinx isn't properly installed, which was the problem.

悲歌长辞 2025-01-05 10:18:57

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文