_ Mysql. c: 2422: error: the initial value setting element is not a constant.
_ Mysql. c: 2422: Error :( near the initialization of '_ mysql_ResultObject_memberlist [0]. offset)
_ Mysql. c: In function '_ mysql_ConnectionObject_getattr ':
_ Mysql. c: 2444: Error: '_ mysql_ConnectionObject' does not have a member named 'open '.
Error: command 'gcc 'failed with exit status 1
Solution
vi site.cfgSet#mysql_config = /usr/local/bin/mysql_configComment out and change it to the correct local location:
mysql_config = /usr/bin/mysql_config. But the same error still occurs. View the prompt vi README. mysql-devel is required:
Installyum install mysql-develAnd then execute:python2.7 setup.py install, The Mysqldb module is compiled and installed successfully:
This article is from the blog "someone says my technology house", please be sure to keep this source http://1992mrwang.blog.51cto.com/3265935/1290319