Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error <my_config.h> MUST be included first - CentOS 7 #89

Closed
danpilch opened this issue Nov 19, 2014 · 2 comments
Closed

error <my_config.h> MUST be included first - CentOS 7 #89

danpilch opened this issue Nov 19, 2014 · 2 comments

Comments

@danpilch
Copy link

Hi,

The newest version of mariadb-devel (mariadb-devel-5.5.40-1.el7_0.x86_64) on CentOS 7 breaks when installing MySQL-python via pip:

In file included from /usr/include/mysql/my_config.h:14:0,

             from _mysql.c:44:

/usr/include/mysql/my_config_x86_64.h:654:2: error: #error <my_config.h> MUST be included first!

#error <my_config.h> MUST be included first!

^

error: command 'gcc' failed with exit status 1

I resolved this by removing all mariadb packages via yum:

yum remove maria*

Then installing an older version (mariadb-devel-5.5.37-1.el7_0.x86_64). This seemed to fix the issue.

Hope this can help anyone else in the same situation.

@methane
Copy link
Collaborator

methane commented Nov 19, 2014

FYI, mysqlclient has fixed it.
PyMySQL/mysqlclient#7

@rbu
Copy link

rbu commented Nov 21, 2014

Duplicate of #80

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants