我已经安装了thinking_sphinx。我遇到了麻烦,每当我尝试运行rake thinking_sphinx:index时,我都会得到以下错误:
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问题是。我无论如何也不能得到config/sphinx.yml文件来生成。我该怎么办?
gem list --local | grep thinking返回thinking-sphinx (2.0.10, 2.0.4)
发布于 2011-12-03 12:17:09
您必须自己创建配置-其格式非常类似于config/sphinx.yml /database.yml,因为您可以按环境对设置进行分组。
development:
bin_path: /usr/local/bin发布于 2012-06-20 23:55:36
我知道这已经有一段时间了,但我也遇到了同样的问题,这非常愚蠢。尽管我已经捆绑安装了ThinkingSphinx,但我从来没有真正安装过它本身。
如果你运行
which indexer
which searchd它们不会返回你没有正确安装的sphinx的路径。如果您确实获得了一个路径,并且它与/usr/local/bin不同,请相应地修改您的配置/sphinx.yml。
发布于 2013-04-13 10:44:06
我通过Lion上的自制软件安装了sphinx,bin_path所需的路径是
/Users/username/.homebrew/Cellar/sphinx.2.0.7/bin
https://stackoverflow.com/questions/8365439
复制相似问题