在ubuntu上安装sphinx

在ubuntu上安装sphinx,ubuntu,sphinx,Ubuntu,Sphinx,我用apt-get安装了MySQL Ubuntu将mysql文件分离到以下位置: /usr/bin/mysql /var/lib/mysql /var/log/mysql /etc/mysql/my.cnf 按照斯芬克斯文件中的说明: $ ./configure --前缀,指定在何处安装Sphinx;例如--prefix=/usr/local/sphinx(所有示例都使用此前缀) ——使用mysql,指定在自动检测失败时在何处查找mysql包含和库文件 我得到以下错误: checking

我用apt-get安装了MySQL

Ubuntu将mysql文件分离到以下位置:

/usr/bin/mysql
/var/lib/mysql
/var/log/mysql
/etc/mysql/my.cnf
按照斯芬克斯文件中的说明:

$ ./configure
--前缀
,指定在何处安装Sphinx;例如
--prefix=/usr/local/sphinx
(所有示例都使用此前缀)

——使用mysql
,指定在自动检测失败时在何处查找mysql包含和库文件


我得到以下错误:

checking whether to compile with MySQL support... yes
configure: error: invalid MySQL root directory '/usr/bin'; neither bin/mysql_config, nor include/ and lib/ were found there

我应该告诉它在哪里查找MySQL

$ ./configure --with-mysql=WHICH PLACE?

您是否尝试过sudo apt get install sphinxsearch?不确定您为什么要从源代码处编译它,而不是使用现有的Ubuntu软件包。

您是否尝试过
sudo-apt-get-install-sphinxsearch
?不确定您为什么要从源代码处编译它,而不是使用现有的Ubuntu软件包。

您需要安装
libmysqlclient dev
软件包,否则
mysql\u config
,根据您发布的回溯,您缺少的部分内容不会出现在您的计算机上

shell$ sudo apt-get install libmysqlclient-dev
安装包后,您可以使用
which
命令定位
mysql\u config

shell$ which mysql_config

在我的Ubuntu机器上,它是
/usr/bin/mysql\u-config
你需要安装
libmysqlclient-dev
软件包,否则
mysql\u-config
,根据你发布的回溯,你丢失的部分内容不会出现在你的机器上

shell$ sudo apt-get install libmysqlclient-dev
安装包后,您可以使用
which
命令定位
mysql\u config

shell$ which mysql_config

在我的Ubuntu机器上,它是
/usr/bin/mysql\u config

我知道你提供的方法,而且它是有效的。但是我想试试编译方法。另外,使用这种方法的最新二进制文件是0.9.9版,最新的sphinx是2.0.3版。这里是2.0.3版的deb安装。我知道你提供的方法,而且很有效。但是我想试试编译方法。另外,使用这种方法的最新二进制文件是0.9.9版,最新的sphinx是2.0.3版。这里是2.0.3版的deb安装。非常感谢非常感谢