Mysql 在您的系统上找不到Sphinx。
我正在ubuntu12.04中使用rails应用程序。我刚刚使用这些命令安装了thinkingsphinx和sphinxMysql 在您的系统上找不到Sphinx。,mysql,ruby-on-rails,rubygems,sphinx,thinking-sphinx,Mysql,Ruby On Rails,Rubygems,Sphinx,Thinking Sphinx,我正在ubuntu12.04中使用rails应用程序。我刚刚使用这些命令安装了thinkingsphinx和sphinx sudo apt-get install sphinxsearch sudo gem install thinking-sphinx 但是斯芬克斯版本是1.4.11,但我想要1.3.20。所以我安装了thinking sphinx,版本为1.3.20。 之后,我开始通过rake ts:index建立索引 但我得到了这个错误 rake/rdoctask is
sudo apt-get install sphinxsearch
sudo gem install thinking-sphinx
但是斯芬克斯版本是1.4.11,但我想要1.3.20。所以我安装了thinking sphinx,版本为1.3.20。
之后,我开始通过rake ts:index建立索引
但我得到了这个错误
rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+)
Please install RDoc 2.4.2+ to generate documentation.
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:
http://freelancing-god.github.com/ts/en/advanced_config.html
rake aborted!
uninitialized constant MysqlCompat::MysqlRes
Tasks: TOP => environment
(See full trace by running task with --trace)
关于这个问题我搜索了一下。。之后,我将config/sphinx.yml文件修改为
development:
bin_path: "/usr/bin"
searchd_binary_name: searchd
indexer_binary_name: indexer
port: 9110
morphology: stem_en
enable_star: true
html_strip: 1
min_infix_len: 2
我还安装了sudogem和mysql
问题仍然没有解决
请任何人提出解决这个问题的建议
提前非常感谢。我想你需要运行斯芬克斯执事。这件事可以用电脑来完成
sudo服务sphinxsearch restart
命令。试试看。您的sphinx服务器正在运行吗?您能建议我如何运行sphinx服务器吗?我做了rake ts:index,rake ts:start,rake ts:configure,rake ts:rebuild。。。对于每个命令,我都会得到相同的错误。请尝试$sudo/etc/init.d/searchd start
。如果有效,然后运行rake任务。我给出了sudo/etc/init.d/searchd start
之后我得到了这个输出sudo:/etc/init.d/searchd:command not found
Tryps aux | grep sphinx
看看你得到了什么。我尝试重新启动sphinxsearch。。我在控制台里收到了这个消息要启用sphinxsearch,请编辑/etc/default/sphinxsearch并在该文件中设置START=yes
,我需要START=no。我是否要用START=yes编辑该文件?昨天我不知道该消息的原因,但今天我在控制台运行sudo service sphinxsearch restart
时收到了此消息,停止:未知实例:
斯芬克斯搜索停止/预启动,进程3624。但我的sphinxsearch文件仍然包含start=no。此消息是否表示我的sphinx正在运行?我认为您的sphinx deamon正在运行,您只需重新启动它:)一切都必须正常。但如果我正在执行rake ts:index,它会询问在您的系统上找不到sphinx
,并要求提供bin_路径和二进制路径。你能告诉我如何重新启动斯芬克斯吗。。我想您可以尝试停止sphinxsudo服务sphinx搜索stop
命令。并从应用程序rakets:start