歡迎您光臨本站 註冊首頁

安裝sphinx出現錯誤ERROR: cannot find MySQL include files.

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

安裝sphinx出現錯誤ERROR: cannot find MySQL include files.

今天在配置sphinx,
#./configure --prefix=/usr/local/sphinx --with-mysql=/usr/local/mysql/

出現如下錯誤:

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

根據錯誤提示檢查:
伺服器中已經安裝了mysql-devel

編譯時加參數:--with-mysql-includes也不行。

百度google沒找到解決方法,請求大家指點。謝謝!
《解決方案》

這個很經常的問題 主要看mysql是如何安裝的要要找到mysql的目錄
《解決方案》

哦!那怎麼解決呢???????

[火星人 ] 安裝sphinx出現錯誤ERROR: cannot find MySQL include files.已經有949次圍觀

http://coctec.com/docs/service/show-post-13879.html