gpt4 book ai didi

linux - 指向 mysql-includes,尝试配置 sphinx 搜索

转载 作者:太空宇宙 更新时间:2023-11-04 09:48:29 25 4
gpt4 key购买 nike

当我尝试配置 Sphinx 搜索时,我得到以下信息,我相信很多人以前都见过......

(在 Linux VPS 上使用 Cent OS。Sphinx 压缩包已下载并解压。)

ERROR: cannot find MySQL include files.

Check that you do have MySQL include files installed.
The package name is typically 'mysql-devel'.

If include files are installed on your system, but you are still getting
this message, you should do one of the following:

1) either specify includes location explicitly, using --with-mysql-includes;
2) or specify MySQL installation root location explicitly, using --with-mysql;
3) or make sure that the path to 'mysql_config' program is listed in
your PATH environment variable.

To disable MySQL support, use --without-mysql option.

所以,我运行 # which mysql-includes 来找到它,这就是我得到的...

/usr/bin/which: no mysql-devel in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/根目录/bin)

那也可能是一种外星语言,现在我被困住了。我知道我的服务器上安装了 MySQL,因为我有已设置和正在使用的数据库。谁能帮我跨过这个障碍?

此外,关于如何使用 --with-mysql-includes 之类的东西的一个很好的例子是什么?

最佳答案

yum install mysql-devel  

这将从 CentOS 存储库中获取 mysql 开发包

关于linux - 指向 mysql-includes,尝试配置 sphinx 搜索,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13706842/

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