【问题标题】:Sphinx installation Fails to configure with MySQLSphinx 安装无法使用 MySQL 进行配置
【发布时间】:2014-11-20 09:29:42
【问题描述】:

当我运行 ThinkingSphinx 索引任务 bundle exec rake ts:index 时出现错误。即, unknown type 'mysql'; skipping.

错误日志:生成配置到 ../../config/development.sphinx.conf 狮身人面像 2.2.4-id64-release (r4806) 版权所有 (c) 2001-2014,Andrew Aksyonoff 版权所有 (c) 2008-2014, 狮身人面像技术公司 (http://sphinxsearch.com)

使用配置文件 '../../config/development.sphinx.conf'... 警告: 密钥“sql_query_info”已从 Sphinx 中永久删除 配置。有关详细信息,请参阅文档。警告:关键 'charset_type' 已从 Sphinx 配置中永久删除。

有关详细信息,请参阅文档。索引索引“video_core”... 错误:源“video_core_0”:未知类型“mysql”;跳过。错误: index 'video_core': 部分源配置失败,不会 指数。跳过非普通索引“视频”...总共 0 次读取,0.000 秒, 0.0 kb/调用平均值,0.0 毫秒/调用平均值总计 0 次写入,0.000 秒,0.0 kb/调用平均值,0.0 毫秒/调用平均值

失败的解决方案:

  1. 在 Mavericks 上使用 Homebrew 重新安装 Sphinx。 brew install sphinx --with-mysql=/usr/local/Cellar/mysql/5.6.20_1/include/mysql
  2. brew install sphinx --with-mysql

【问题讨论】:

    标签: mysql ruby-on-rails sphinx thinking-sphinx


    【解决方案1】:

    我不知道为什么它没有选择您现有的 MySQL 安装...但是您可以尝试手动编译,看看是否可行? http://pat.github.io/thinking-sphinx/installing_sphinx.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-08-22
      • 2010-10-29
      • 2014-04-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-27
      相关资源
      最近更新 更多