binary_log_types.h:没有这样的文件或目录 [英] binary_log_types.h: No such file or directory

查看:1272
本文介绍了binary_log_types.h:没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编译一个小的mysql C项目,
遇到以下错误:

I was compiling a small mysql C project and got stuck with the below error :

 C:\Program Files (x86)\MySQL\MySQL Server 5.7\include/mysql_com.h:22:30: fatal error: binary_log_types.h: No such file or directory.

我做了一个 dir binary_log_types.h / b / s C:驱动器,但我没有找到任何binary_log_types.h文件。


可能的解决方法是什么?

I did a dir binary_log_types.h /b /s at C: drive but i didn't find any binary_log_types.h file as such.

What is a possible workaround?

推荐答案

经过一番研究,我发现由于某些原因,mysql 5.7社区安装程序安装中缺少两个文件 binary_log_funcs.h binary_log_types.h br />

After a bit of research I figured out that for some reason the two files binary_log_funcs.h and binary_log_types.h are missing from the mysql 5.7 community installer installation.

修复:

1)下载MySQL服务器源代码从 MySQL网站

1) Download the MySQL Server Source code from the MySQL Site.

2)解压tar文件。 (我使用Winrar为此)

2) Extract the the tar archive. ( I used Winrar for this)

3)转到Your\Download\Location\Here\mysql-5.7.7-rc\mysql -5.7.7-rc\libbinlogevents\export\

3) Goto Your\Download\Location\Here\mysql-5.7.7-rc\mysql-5.7.7-rc\libbinlogevents\export\

4)复制 binary_log_funcs.h binary_log_types.h 从此文件夹和
粘贴到Path\to\your\mysql\server\ include。

4) Copy the binary_log_funcs.h and binary_log_types.h from this folder and paste them in Path\to\your\mysql\server\include.

5)重新构建Code :: Blocks应用程序。

5) Rebuild the Code::Blocks application.

strong>确保Code :: Blocks具有访问C:目录中文件和文件夹的权限。此外,这可能是一个临时修复,我强烈的感觉,我没有做一个完整的mysql安装,应该自动包括这些文件。反正我暂时高兴:)

Note : Make sure that Code::Blocks has the permission to access the the files and folders in the C: directory. Also, this could be a temporary fix as I strongly feel that I didn't do a complete mysql installation which should automatically include these files. Anyway I am temporarily happy :)

这篇关于binary_log_types.h:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆