[[email protected] mysql-python-1.2.3]# python setup.py install
function
....
_mysql.c:133:error: ' Er_syntax_error ' undeclared (first use of this function)
_mysql.c:380:error: ' _mysql_connectionobject ' has no member named ' Connection '
_mysql.c:382:warning:implicit declaration of function ' Mysql_store_result '
_mysql.c:382:error: ' _mysql_connectionobject ' has no member named ' Connection '
_mysql.c:383:error: ' _mysql_resultobject ' has no member named ' Result '
_mysql.c:at Top level:
_mysql.c:2331:error: ' _mysql_connectionobject ' has no member named ' Open '
_mysql.c:2338:error: ' _mysql_connectionobject ' has no member named ' Converter '
_mysql.c:2345:error: ' _mysql_connectionobject ' has no member named ' Connection '
_mysql.c:2352:error: ' _mysql_connectionobject ' has no member named ' Connection '
_mysql.c:2359:error: ' _mysql_connectionobject ' has no member named ' Connection '
_mysql.c:2422:error: ' _mysql_resultobject ' has no member named ' Converter '
_mysql.c:2422:error:initializer element is not constant
_mysql.c:2422:error: (Near initialization for ' _mysql_resultobject_memberlist[0].offset ')
_mysql.c:in function ' _mysql_connectionobject_getattr ':
_mysql.c:2444:error: ' _mysql_connectionobject ' has no member named ' Open '
Error:command ' gcc ' failed with exit status 1
Solve:
Yum Install Mysql-devel-y
LIBXML2 libxml2-dev libxslt* zlib gcc openssl