红联Linux门户
Linux帮助

安装sphinx出现错误ERROR: cannot find MySQL include files.

发布时间:2011-10-20 11:29:59来源:红联作者:like7419
今天在配置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没找到解决方法,请求大家指点。谢谢!
文章评论

共有 1 条评论

  1. like7419 于 2011-10-25 13:19:51发表:

    没人帮助?????????:0wl;l1