配置 sphinx 搜索时遇到问题

发布于 2024-10-10 23:54:09 字数 1051 浏览 2 评论 0原文

我将 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 文件夹,只有 etcvar

然后它还说:

有 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

追星践月 2024-10-17 23:54:09

您可以尝试安装 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.

涙—继续流 2024-10-17 23:54:09

看起来您这里有安装问题。
make 命令的输出会很有帮助。

Looks like you have installation issue here.
The output of make command will be helpful.

睫毛溺水了 2024-10-17 23:54:09

我建议重新安装 sphinx,只需删除安装 sphinx 的文件夹/或运行 sudo make uninstall,然后按照以下步骤重新安装 sphinx

  1. 更新并获取依赖项。运行这些命令以获得安装 Sphinx 所需的文件。

    • sudo apt-get update
    • sudo apt-get dist-upgrade
    • sudo apt-get install build-essential
    • sudo apt-get install libmysqlclient15-dev
  2. 下载源代码,解压并准备。这就是事情变得有点复杂的地方。您需要提取源代码,更改为目录并配置 Sphinx。使用这些命令执行此操作。

    • tar xvzf sphinx-0.9.8.1.tar.gz
    • cd sphinx-0.9.8.1/
    • ./configure --with-mysql-includes=/usr/include/mysql --with-mysql-libs=/usr/lib/mysql
  3. < p>制作并安装Sphinx

    • 制作
    • sudo make install

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

  1. Update and Grab dependencies. Run these commands in order to get the files you need to install Sphinx.

    • sudo apt-get update
    • sudo apt-get dist-upgrade
    • sudo apt-get install build-essential
    • sudo apt-get install libmysqlclient15-dev
  2. 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.

    • tar xvzf sphinx-0.9.8.1.tar.gz
    • cd sphinx-0.9.8.1/
    • ./configure --with-mysql-includes=/usr/include/mysql --with-mysql-libs=/usr/lib/mysql
  3. Make and Install Sphinx

    • make
    • sudo make install
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文