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_0introduced a strict check in/usr/include/mysql/my_config.hthat breaks build ofMySQL-python(akaMySQLdb)-
Within
pythonvirtual environment,pip install MySql-pythonfails 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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
