我正在尝试获得Sphinx(并且考虑Sphinx工作)。它之前已经运行了 - 但在我的同事安装了Node,php和其他一些东西后,它今晚停止了工作。
它首先抱怨一个锁定的pid文件:
FATAL: failed to lock pid file
在此之后我尝试重新安装Sphinx
:
brew uninstall sphinx
和
brew install sphinx.
我已经mysql
,所以我跳过了--mysql
。这导致以下结果:
This is not sphinx - the Python Documentation Generator.
To install sphinx-python: use pip or easy_install,
Sphinx has been compiled with libstemmer support.
Sphinx depends on either MySQL or PostreSQL as a datasource.
You can install these with Homebrew with:
brew install mysql
For MySQL server.
brew install mysql-connector-c
For MySQL client libraries only.
brew install postgresql
For PostgreSQL server.
We don't install these for you when you install this formula, as
we don't know which datasource you intend to use.
运行searchd
时我得到了这个:
FATAL: no readable config file (looked in /usr/local/Cellar/sphinx/2.2.6/etc/sphinx.conf, ./sphinx.conf).
当我尝试为我的rails应用程序启动thinking-sphinx
时,我得到:
Failed to start searchd. Check the log files for more information.
日志文件仍然说:
FATAL: failed to lock pid file
我不确定是什么导致这种情况,或者我如何解决它。认为重新安装Sphinx
就足够了 - 但我被困在第一个方面。
关于如何让它再次发挥作用的任何想法?
答案 0 :(得分:1)
如何卸载sphinx并开始使用:
brew install sphinx --pgsql --mysql