配置 sphinx 搜索时遇到问题
我将 sphinx 0.9.9 下载到我的 ubuntu 10.4 机器上。
我运行了cd ~/sphinx-0.9.9
,然后./configure
,然后make
,然后make install
。
Make install 给了我错误,所以我运行了 sudo make install
然后就没有错误了。
我正在查看文档。我在2.6。 Sphinx 快速使用教程。
它说:
下面的所有示例命令都假设您将 Sphinx 安装在 /usr/local/sphinx 中,因此可以在 /usr/local/sphinx/bin/searchd 中找到 searchd。
我确实有 /usr/local/sphinx
但其中没有 bin
文件夹,只有 etc
和 var
。
然后它还说:
有 example.sql 示例数据文件,可使用一些文档填充该表以进行测试:
$ mysql -u 测试< /usr/local/sphinx/etc/example.sql
但在我的 /usr/local/sphinx/etc/
文件夹中只有一个文件: sphinx.conf
并根据根据文档,文件不应该存在,它应该是 sphinx.conf.dist
我在 6 个月前尝试安装 sphinx 但放弃了。我现在才重新审视它,所以也许我有可能搞砸了一些事情,这给我带来了问题。有没有办法删除所有狮身人面像,以便我可以再次尝试新鲜?或者有人有任何其他想法发生了什么事吗?
I downloaded sphinx 0.9.9 to my ubuntu 10.4 machine.
I ran cd ~/sphinx-0.9.9
then ./configure
, then make
then make install
.
Make install gave me errors so I ran sudo make install
and then there were no errors.
I am going through the documentation. I am at 2.6. Quick Sphinx usage tour.
It says:
All the example commands below assume that you installed Sphinx in /usr/local/sphinx, so searchd can be found in /usr/local/sphinx/bin/searchd.
I do have /usr/local/sphinx
but there is no bin
folder in it, just etc
and var
.
It then also says:
there's example.sql sample data file to populate that table with a few documents for testing purposes:
$ mysql -u test < /usr/local/sphinx/etc/example.sql
but inside my /usr/local/sphinx/etc/
folder there is only one file: sphinx.conf
and according to the docs that file shouldnt event exist yet, it should be sphinx.conf.dist
I tried to install sphinx 6 months ago and gave up. I am only revisiting it now, so maybe there is a chance I screwed something up then that is giving me problems now. Is there a way to remove everything sphinx so I can try again fresh? Or does anyone have any other ideas what is going on?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以尝试安装 sphinx 的软件包版本;它有点旧,但应该也能工作。至于编译问题,您可以查看SphinxSearch 论坛。
You might try installing the package version of sphinx; it's slightly older, but should work as well. As far as compiling problems, you might check the SphinxSearch forum.
看起来您这里有安装问题。
make 命令的输出会很有帮助。
Looks like you have installation issue here.
The output of make command will be helpful.
我建议重新安装 sphinx,只需删除安装 sphinx 的文件夹/或运行 sudo make uninstall,然后按照以下步骤重新安装 sphinx
更新并获取依赖项。运行这些命令以获得安装 Sphinx 所需的文件。
下载源代码,解压并准备。这就是事情变得有点复杂的地方。您需要提取源代码,更改为目录并配置 Sphinx。使用这些命令执行此操作。
I would suggest reinstalling sphinx, just delete the folder/or run sudo make uninstall, where you had installed the sphinx, and then following these steps to reinstall sphinx
Update and Grab dependencies. Run these commands in order to get the files you need to install Sphinx.
Download source, Untar and prep. Here's where it gets a bit complicated. You'll need to extract the source, change into the directory and configure Sphinx. Do that with these commands.
Make and Install Sphinx