gpt4 book ai didi

mysql - 安装 Sphinx 和 MySQL 5.7

转载 作者:行者123 更新时间:2023-11-29 11:49:57 24 4
gpt4 key购买 nike

我正在尝试使用 MySQL 5.7 安装 Sphinx 每当运行此命令时,我都会从 Sphinx 站点下载 tarball sudo ./configure --prefix=/usr/local/sphinx --with-mysql 我收到此错误。

configuring Sphinx
------------------

checking whether to use dynamic linking for DB drivers... no
checking for CFLAGS needed for pthreads... -pthread
checking for LIBS needed for pthreads... -lpthread
checking for pthreads... found
checking for pthread_mutex_timedlock... yes
checking whether to compile with MySQL support... dynamic
checking for mysql_config... mysql_config
checking for mysql_real_connect... no
checking for mysql_real_connect... no
checking MySQL include files... configure: error: missing include files.

******************************************************************************
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.
******************************************************************************

我尝试过安装这个“sudo apt-get install libmysqlclient-dev”,但它仍然不起作用。我什至尝试过提供 MySQL 包含文件路径,但它仍然不起作用。任何人都可以导致此错误的原因是什么?我使用的是 ubuntu 12.04。

最佳答案

安装 mysql-devel 对 Centos 很有帮助sudo yum install mysql-devel
假设 ubuntu 的包名称是相同的。

关于mysql - 安装 Sphinx 和 MySQL 5.7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34271721/

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