免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5036 | 回复: 2
打印 上一主题 下一主题

[Web] 安装sphinx出现错误ERROR: cannot find MySQL include files. [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-10-20 11:28 |只看该作者 |倒序浏览
今天在配置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没找到解决方法,请求大家指点。谢谢!

论坛徽章:
0
2 [报告]
发表于 2011-10-20 15:35 |只看该作者
这个很经常的问题 主要看mysql是如何安装的要要找到mysql的目录

论坛徽章:
0
3 [报告]
发表于 2011-10-25 13:14 |只看该作者
哦!那怎么解决呢???????
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP