2014-09-25 31 views
0

當我運行ThinkingSphinx索引任務bundle exec rake ts:index時出現錯誤。也就是說, unknown type 'mysql'; skipping.獅身人面像安裝無法使用MySQL配置

ERROR LOG: Generating configuration to ../../config/development.sphinx.conf Sphinx 2.2.4-id64-release (r4806) Copyright (c) 2001-2014, Andrew Aksyonoff Copyright (c) 2008-2014, Sphinx Technologies Inc (http://sphinxsearch.com)

using config file '../../config/development.sphinx.conf'... WARNING: key 'sql_query_info' was permanently removed from Sphinx configuration. Refer to documentation for details. WARNING: key 'charset_type' was permanently removed from Sphinx configuration.

Refer to documentation for details. indexing index 'video_core'... ERROR: source 'video_core_0': unknown type 'mysql'; skipping. ERROR: index 'video_core': failed to configure some of the sources, will not index. skipping non-plain index 'video'... total 0 reads, 0.000 sec, 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

失敗的解決方案:

  1. 使用上小牛家釀重新安裝獅身人面像。 brew install sphinx --with-mysql=/usr/local/Cellar/mysql/5.6.20_1/include/mysql
  2. brew install sphinx --with-mysql

回答