gpt4 book ai didi

ruby-on-rails - ThinkinSphinx - 未找到 - 在您的系统上找不到 Sphinx

转载 作者:行者123 更新时间:2023-12-02 05:03:35 25 4
gpt4 key购买 nike

我尝试在我的新服务器上使用 rails 3.0.1 安装 sphinx。

我总是这样:

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

一些谜语错误。

首先我尝试通过 ubuntu 包:

sudo apt-get install sphinxsearch

这没有帮助,所以我尝试从网站加载它并自己编译。

我可以执行:

RAILS_ENV=production rake ts:rebild

我找到了:

whereis searchd searchd: /usr/local/bin/searchd

但是 crontab -e 无法执行重建方法...

购买尝试手动启动搜索时也会出现此错误:

searchd --pidfile --config/var/www/config/production.sphinx.conf狮身人面像 2.1.1-测试版 (rel21-r3701)版权所有 (c) 2001-2013,Andrew Aksyonoff版权所有 (c) 2008-2013,Sphinx Technologies Inc (http://sphinxsearch.com)

使用配置文件 '/var/www/config/production.sphinx.conf'...警告:关键“地址”在/var/www/config/production.sphinx.conf 第 8 行中已弃用;请改用“听”。警告:在/var/www/config/production.sphinx.conf 第 9 行中弃用了键“端口”;请改用“听”。致命:无法锁定 pid 文件 '/var/www/log/searchd.production.pid':资源暂时不可用(searchd 已经在运行?)

谢谢!!!周末愉快!

最佳答案

ThinkinSphinx 在/usr/bin/查找 searchd 和索引器,所以我创建了一个指向/usr/local/bin/searchd 和/usr/local/bin/indexer 的符号链接(symbolic link)并开始工作。

sudo ln -s /usr/local/bin/searchd  /usr/bin/searchd
sudo ln -s /usr/local/bin/indexer /usr/bin/indexer

问候

关于ruby-on-rails - ThinkinSphinx - 未找到 - 在您的系统上找不到 Sphinx,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16612348/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com