当我运行ThinkingSphinx索引任务bundle exec rake ts:index
时,我收到错误消息。也就是说,
unknown type 'mysql'; skipping.
错误日志:生成配置到 ../../config/development.sphinx.conf Sphinx 2.2.4-id64-release(r4806) 版权所有(c)2001-2014,Andrew Aksyonoff版权所有(c)2008-2014, Sphinx Technologies Inc(http://sphinxsearch.com)
使用配置文件' ../../ config / development.sphinx.conf' ...警告: key' sql_query_info'从狮身人面像中永久移除 组态。有关详细信息,请参阅文档警告:关键 ' charset_type选项'已从Sphinx配置中永久删除。
有关详细信息,请参阅文档。索引索引' video_core' ... 错误:来源' video_core_0':未知类型' mysql&#39 ;;跳绳。错误: index' video_core':未能配置某些来源,不会 指数。跳过非普通索引'视频' ...总共0次读取,0.000秒, 0.0 kb / call avg,0.0 msec / call avg total 0 writes,0.000 sec,0.0 kb / call avg,0.0 msec / call avg
失败的解决方案:
brew install sphinx --with-mysql=/usr/local/Cellar/mysql/5.6.20_1/include/mysql
brew install sphinx --with-mysql
答案 0 :(得分:1)
我不确定为什么它没有拿起你现有的MySQL安装......但你可以尝试手工编译,看看是否有效? http://pat.github.io/thinking-sphinx/installing_sphinx.html