簡體   English   中英

使用MySQL 5.7安裝Sphinx

[英]Installing Sphinx with MySQL 5.7

我正在嘗試使用MySQL 5.7安裝Sphinx,每當我運行此命令sudo ./configure --prefix=/usr/local/sphinx --with-mysql時,我都已從Sphinx站點下載了tarball。sudo 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包名稱是相同的。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM