mariadb-devel /usr/include/mysql/my_config_x86_64.h error <my_config.h> MUST be included first!
Issue
mariadb-5.5.40-1.el7_0
introduced a strict check in/usr/include/mysql/my_config.h
that breaks build ofMySQL-python
(akaMySQLdb
)-
Within
python
virtual environment,pip install MySql-python
fails with$ bin/pip install MySql-python <snip> 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 <snip>
Environment
- Red Hat Enterprise Linux (RHEL) 7
- mariadb-devel-5.5.40-1.el7_0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.