我一直在努力在我的bundle exec rake ts:index项目中运行sharetribe。它正在返回一个错误:
rony@ronyMacMini sharetribe % bundle exec rake ts:index
Generating configuration to /Users/rony/Documents/freelensia Ofc/sharetribe/config/development.sphinx.conf
DEBUG (1.0ms) SET NAMES utf8, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483
DEBUG ↳ app/indices/custom_field_value_index.rb:8
DEBUG Delayed::Backend::ActiveRecord::Job Destroy (4.2ms) DELETE FROM `delayed_jobs` WHERE (handler LIKE ('--- !ruby/object:ThinkingSphinx::Deltas::%') AND locked_at IS NULL AND locked_by IS NULL AND failed_at IS NULL)
DEBUG ↳ /Users/rony/.rvm/gems/ruby-2.6.5/bin/rake:23
Sphinx 3.3.1 (commit b72d67bc)
Copyright (c) 2001-2020, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
using config file '/Users/rony/Documents/abc/sharetribe/config/development.sphinx.conf'...
ERROR: unknown key name 'docinfo' in /Users/rony/Documents/abc/sharetribe/config/development.sphinx.conf line 40 col 10.
FATAL: failed to parse config file '/Users/rony/Documents/abc/sharetribe/config/development.sphinx.conf'
The Sphinx indexing command failed:
Command: indexer --config "/Users/rony/Documents/abc/sharetribe/config/development.sphinx.conf" --all
Status: 1
Output: See above
There may be more information about the failure in /Users/rony/Documents/abc/sharetribe/log/development.searchd.log.注意:为了在我的mac上安装thinking-sphinx,我下载了一组预先构建的二进制文件,并在usr/local/bin中复制粘贴了bin的内容。
到处都找遍了但找不到解决办法。我肯定我错过了一些愚蠢的东西。
请帮我修一下。
Update将狮身人面像降级为2.2.11。现在又提出了一个问题:
dyld: Library not loaded: /opt/local/lib/mysql55/mysql/libmysqlclient.18.dylib
Referenced from: /usr/local/bin/indexer
Reason: image not found
zsh: abort indexer我认为/opt/local对mac是不正确的系统目录格式。:(
发布于 2020-11-24 10:45:19
这是因为最近版本的Sphinx删除了docinfo设置。
Sharetribe使用的是哪个版本的思维狮身人面像?如果是4.x,则可以通过向docinfo中的每个适当环境添加skip_docinfo: true来禁用config/thinking_sphinx.yml设置。例如:
development:
skip_docinfo: true在ThinkSphinxV5.0中,docinfo不再被使用,但是升级需要使用向所有索引模型添加回调进行一些工作。
如果使用Thinking Sphinx v3.x,则需要将Sphinx的版本降级为v2.2.11。
https://stackoverflow.com/questions/64982634
复制相似问题