狮身人面像配置|| config / sphinx.yml

| 我的狮身人面像配置是:
================================ config/sphinx.yml
development:
  bin_path: \"/usr/local/bin\"
  searchd_binary_name: searchd
  indexer_binary_name: indexer
但是每次我跑ѭ1
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

For more information, read the documentation:
For more information, read the documentation:
http://freelancing-god.github.com/ts/en/advanced_config.html
Generating Configuration to config/development.sphinx.conf
Sphinx 2.0.1-beta (r2792)
Copyright (c) 2001-2011, Andrew Aksyonoff
Copyright (c) 2008-2011, Sphinx Technologies Inc (http://sphinxsearch.com)

using config file \'config/development.sphinx.conf\'...
indexing index \'post_core\'...
collected 2 docs, 0.0 MB
sorted 0.0 Mhits, 100.0% done
total 2 docs, 675 bytes
total 0.006 sec, 110510 bytes/sec, 327.43 docs/sec
skipping non-plain index \'post\'...
total 6 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg
total 12 writes, 0.000 sec, 0.1 kb/call avg, 0.0 msec/call avg
rotating indices: succesfully sent SIGHUP to searchd (pid=19438).
Generating Configuration to config/development.sphinx.conf
Sphinx 2.0.1-beta (r2792)
Copyright (c) 2001-2011, Andrew Aksyonoff
Copyright (c) 2008-2011, Sphinx Technologies Inc (http://sphinxsearch.com)

using config file \'config/development.sphinx.conf\'...
indexing index \'post_core\'...
collected 2 docs, 0.0 MB
sorted 0.0 Mhits, 100.0% done
total 2 docs, 675 bytes
total 0.006 sec, 105567 bytes/sec, 312.79 docs/sec
skipping non-plain index \'post\'...
total 6 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg
total 12 writes, 0.000 sec, 0.1 kb/call avg, 0.0 msec/call avg
rotating indices: succesfully sent SIGHUP to searchd (pid=19438).
所以有什么问题?为什么rake输出,即使安装了它也找不到它?     
已邀请:
        Thinking Sphinx发出的警告肯定会更清楚……问题很可能是您的Think Sphinx版本多大了。较旧的TS版本不了解Sphinx 2.0.x-因此,我建议您更新到最新版本的Think Sphinx(Rails 1.2和2.x的版本为1.4.6,Rails 3的版本为2.0.5)。     
        有两件事可以帮助解决此问题。首先,如Pat所说,将Thinking Sphinx插件或gem更新到最新版本(对于Rails 2是1.4.x,对于Rails 3是2.0.x)很有用。其次,有时可以在配置文件中指定Sphinx的版本(您可以通过调用\“ indexer \”来找到它),特别是如果Sphinx在远程服务器上运行并且Think Sphinx无法在本地访问Sphinx:
production:
  ..
  version: 2.0.4  # <------- Version of Sphinx on remote server 192.168.1.10
  port: 9312 
  address: 192.168.1.10
  ..
    
        我面临着同样的问题,到处寻找没有任何解决方案的答案。 对我有用的技巧是安装旧版本的狮身人面像。 v .9而不是最新的beta。 在此版本的狮身人面像上使用最新的Thinking-Sphinx可以解决此问题。     

要回复问题请先登录注册