Install Mysql-python error Error:command ' gcc ' failed with exit status 1

Source: Internet
Author: User

[[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 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.