ERROR: cannot find MySQL include files 安装 coreseek-3.2.14 遇到的问题及解决

   

    1.安装 coreseek-3.2.14 遇到问题:“ERROR: cannot find MySQL include files,随即在网上搜索各种答案说是要找到mysql.h的正确路径加入./configure才行,可惜找之不到,后来在官网(http://dev.mysql.com/doc/refman/5.5/en/c.html)上找到这样一段话:

 

NoteIf, after an upgrade, you experience problems with compiled client programs, such as Commands out of sync or unexpected core dumps, you probably have used old header or library files when compiling your programs. In this case, check the date for your mysql.h file and libmysqlclient.a library to verify that they are from the new MySQL distribution. If not, recompile your programs with the new headers and libraries. Recompilation might also be necessary for programs compiled against the shared client library if the library major version number has changed (for example from libmysqlclient.so.15 to libmysqlclient.so.16.

     建议用户使用新的 headers 和 library 重新编译 mysql ,说实话我们现在安装 mysql 已经很少使用手动编译的方式了,于是在下面有一个用户评论(User Comments)很有用:

 

 

    Connect to the Internet and do this on Debian Linux to get mysql_config and libraries for C code to compile:

 

apt-get install libmysqlclient15-dev  

   See http://packages.debian.org for place to search for missing libraries

 

 

    使用之后,再编译coreseek-3.2.14,安装成功。

 

 

参考文章:http://blog.csdn.net/agangdi/article/details/8177789

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值