我想在CentOs上运行一个 django项目.我试图通过easy_install和pip安装 mysql– python,但是我有两个错误.我问了这个问题,发现了一些建议,但是他们都没有帮助我.

错误是:

_MysqL.c:29:20: error: Python.h: No such file or directory
_MysqL.c:40:26: error: structmember.h: No such file or directory
_MysqL.c:74: error: expected ‘=’,‘,’,‘;’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:75: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:76: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:77: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:78: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:79: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:80: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:81: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:82: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:83: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:84: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:87: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
_MysqL.c:97: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘_MysqL_ConnectionObject_Type’
_MysqL.c:100: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
_MysqL.c:108: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘_MysqL_ResultObject_Type’
_MysqL.c:127: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:261: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:361: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:379: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:402: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_MysqL.c:403: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_MysqL.c: In function ‘_MysqL_ResultObject_Initialize’:
_MysqL.c:405: error: ‘NULL’ undeclared (first use in this function)
_MysqL.c:405: error: (Each undeclared identifier is reported only once
_MysqL.c:405: error: for each function it appears in.)
_MysqL.c:407: warning: initialization from incompatible pointer type
_MysqL.c:409: error: ‘PyObject’ undeclared (first use in this function)
_MysqL.c:409: error: ‘conv’ undeclared (first use in this function)
_MysqL.c:409: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_MysqL.c:409: warning: statement with no effect
_MysqL.c:413: warning: implicit declaration of function ‘PyArg_ParseTupleAndKeywords’
_MysqL.c:413: error: ‘args’ undeclared (first use in this function)
_MysqL.c:413: error: ‘kwargs’ undeclared (first use in this function)
_MysqL.c:417: warning: implicit declaration of function ‘PyDict_New’
_MysqL.c:421: warning: implicit declaration of function ‘Py_INCREF’
_MysqL.c:423: error: ‘_MysqL_ResultObject’ has no member named ‘conn’
_MysqL.c:423: error: expected expression before ‘)’ token
_MysqL.c:423: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_MysqL.c:423: warning: statement with no effect
_MysqL.c:425: error: ‘_MysqL_ResultObject’ has no member named ‘use’
_MysqL.c:425: warning: statement with no effect
_MysqL.c:426: error: ‘Py_BEGIN_ALLOW_THREADS’ undeclared (first use in this function)
_MysqL.c:426: warning: statement with no effect
_MysqL.c:428: error: ‘_MysqL_ConnectionObject’ has no member named ‘connection’
_MysqL.c:428: warning: passing argument 1 of ‘MysqL_use_result’ from incompatible pointer type
/usr/include/MysqL/MysqL.h:401: note: expected ‘struct MysqL *’ but argument is of type ‘char * (*)[1]’
_MysqL.c:430: error: ‘_MysqL_ConnectionObject’ has no member named ‘connection’
_MysqL.c:430: warning: passing argument 1 of ‘MysqL_store_result’ from incompatible pointer type
/usr/include/MysqL/MysqL.h:400: note: expected ‘struct MysqL *’ but argument is of type ‘char * (*)[1]’
_MysqL.c:431: error: ‘_MysqL_ResultObject’ has no member named ‘result’
_MysqL.c:431: warning: statement with no effect
_MysqL.c:432: error: ‘Py_END_ALLOW_THREADS’ undeclared (first use in this function)
_MysqL.c:432: warning: statement with no effect
_MysqL.c:434: error: ‘_MysqL_ConnectionObject’ has no member named ‘connection’
_MysqL.c:434: warning: passing argument 1 of ‘MysqL_field_count’ from incompatible pointer type
/usr/include/MysqL/MysqL.h:368: note: expected ‘struct MysqL *’ but argument is of type ‘char * (*)[1]’
_MysqL.c:435: warning: implicit declaration of function ‘_MysqL_Exception’
_MysqL.c:438: error: ‘_MysqL_ResultObject’ has no member named ‘converter’
_MysqL.c:438: warning: implicit declaration of function ‘PyTuple_New’
_MysqL.c:438: warning: statement with no effect
_MysqL.c:439: warning: implicit declaration of function ‘Py_DECREF’
_MysqL.c:443: error: ‘_MysqL_ResultObject’ has no member named ‘nfields’
_MysqL.c:443: warning: statement with no effect
_MysqL.c:444: error: ‘_MysqL_ResultObject’ has no member named ‘converter’
_MysqL.c:450: error: ‘tmp’ undeclared (first use in this function)
_MysqL.c:450: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_MysqL.c:450: error: ‘fun’ undeclared (first use in this function)
_MysqL.c:450: warning: left-hand operand of comma expression has no effect
_MysqL.c:450: warning: statement with no effect
_MysqL.c:451: warning: implicit declaration of function ‘PyInt_FromLong’
_MysqL.c:451: warning: statement with no effect
_MysqL.c:456: warning: implicit declaration of function ‘PyObject_GetItem’
_MysqL.c:456: warning: statement with no effect
_MysqL.c:459: warning: implicit declaration of function ‘PyErr_Occurred’
_MysqL.c:460: warning: implicit declaration of function ‘PyErr_ExceptionMatches’
_MysqL.c:460: error: ‘PyExc_KeyError’ undeclared (first use in this function)
_MysqL.c:464: warning: implicit declaration of function ‘PyErr_Clear’
_MysqL.c:466: error: ‘Py_None’ undeclared (first use in this function)
_MysqL.c:466: warning: statement with no effect
_MysqL.c:469: warning: implicit declaration of function ‘PySequence_Check’
_MysqL.c:470: warning: implicit declaration of function ‘PySequence_Size’
_MysqL.c:471: error: ‘fun2’ undeclared (first use in this function)
_MysqL.c:471: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_MysqL.c:471: warning: statement with no effect
_MysqL.c:473: error: ‘t’ undeclared (first use in this function)
_MysqL.c:473: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_MysqL.c:473: warning: implicit declaration of function ‘PySequence_GetItem’
_MysqL.c:473: warning: statement with no effect
_MysqL.c:479: warning: implicit declaration of function ‘PyTuple_Check’
_MysqL.c:479: warning: implicit declaration of function ‘PyTuple_GET_SIZE’
_MysqL.c:481: error: ‘pmask’ undeclared (first use in this function)
_MysqL.c:481: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_MysqL.c:481: warning: statement with no effect
_MysqL.c:482: warning: implicit declaration of function ‘PyTuple_GET_ITEM’
_MysqL.c:482: warning: statement with no effect
_MysqL.c:483: warning: statement with no effect
_MysqL.c:484: warning: implicit declaration of function ‘PyInt_Check’
_MysqL.c:485: warning: implicit declaration of function ‘PyInt_AS_LONG’
_MysqL.c:495: warning: statement with no effect
_MysqL.c:504: warning: statement with no effect
_MysqL.c:507: warning: statement with no effect
_MysqL.c:509: warning: implicit declaration of function ‘PyTuple_SET_ITEM’
_MysqL.c:509: error: ‘_MysqL_ResultObject’ has no member named ‘converter’
_MysqL.c: In function ‘_MysqL_ResultObject_clear’:
_MysqL.c:535: warning: implicit declaration of function ‘Py_XDECREF’
_MysqL.c:535: error: ‘_MysqL_ResultObject’ has no member named ‘converter’
_MysqL.c:536: error: ‘_MysqL_ResultObject’ has no member named ‘converter’
_MysqL.c:536: error: ‘NULL’ undeclared (first use in this function)
_MysqL.c:536: warning: statement with no effect
_MysqL.c:537: error: ‘_MysqL_ResultObject’ has no member named ‘conn’
_MysqL.c:538: error: ‘_MysqL_ResultObject’ has no member named ‘conn’
_MysqL.c:538: warning: statement with no effect
_MysqL.c: At top level:
_MysqL.c:545: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_MysqL.c:546: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_MysqL.c: In function ‘_MysqL_ConnectionObject_Initialize’:
_MysqL.c:548: error: ‘NULL’ undeclared (first use in this function)
_MysqL.c:548: warning: initialization from incompatible pointer type
_MysqL.c:549: error: ‘PyObject’ undeclared (first use in this function)
_MysqL.c:549: error: ‘conv’ undeclared (first use in this function)
_MysqL.c:549: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_MysqL.c:549: warning: statement with no effect
_MysqL.c:550: error: ‘ssl’ undeclared (first use in this function)
_MysqL.c:550: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_MysqL.c:550: warning: statement with no effect
_MysqL.c:552: warning: initialization from incompatible pointer type
_MysqL.c:552: warning: initialization from incompatible pointer type
_MysqL.c:552: warning: initialization from incompatible pointer type
_MysqL.c:553: warning: initialization from incompatible pointer type
_MysqL.c:553: warning: initialization from incompatible pointer type
_MysqL.c:555: warning: initialization from incompatible pointer type
_MysqL.c:555: warning: initialization from incompatible pointer type
_MysqL.c:555: warning: initialization from incompatible pointer type
_MysqL.c:556: warning: initialization from incompatible pointer type
_MysqL.c:556: warning: initialization from incompatible pointer type
_MysqL.c:569: error: initializer element is not constant
_MysqL.c:569: error: (near initialization for ‘kwlist[17]’)
_MysqL.c:575: warning: initialization from incompatible pointer type
_MysqL.c:576: warning: initialization from incompatible pointer type
_MysqL.c:577: warning: initialization from incompatible pointer type
_MysqL.c:579: error: ‘_MysqL_ConnectionObject’ has no member named ‘converter’
_MysqL.c:579: warning: statement with no effect
_MysqL.c:580: error: ‘_MysqL_ConnectionObject’ has no member named ‘open’
_MysqL.c:580: warning: statement with no effect
_MysqL.c:583: error: ‘args’ undeclared (first use in this function)
_MysqL.c:583: error: ‘kwargs’ undeclared (first use in this function)
_MysqL.c:616: error: ‘value’ undeclared (first use in this function)
_MysqL.c:616: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_MysqL.c:616: warning: statement with no effect
_MysqL.c:617: warning: implicit declaration of function ‘PyMapping_GetItemString’
_MysqL.c:617: warning: statement with no effect
_MysqL.c:617: warning: implicit declaration of function ‘PyString_Asstring’
_MysqL.c:617: warning: assignment makes pointer from integer without a cast
_MysqL.c:618: warning: statement with no effect
_MysqL.c:618: warning: assignment makes pointer from integer without a cast
_MysqL.c:619: warning: statement with no effect
_MysqL.c:619: warning: assignment makes pointer from integer without a cast
_MysqL.c:620: warning: statement with no effect
_MysqL.c:620: warning: assignment makes pointer from integer without a cast
_MysqL.c:621: warning: statement with no effect
_MysqL.c:621: warning: assignment makes pointer from integer without a cast
_MysqL.c:629: error: ‘Py_BEGIN_ALLOW_THREADS’ undeclared (first use in this function)
_MysqL.c:629: warning: statement with no effect
_MysqL.c:630: error: ‘_MysqL_ConnectionObject’ has no member named ‘connection’
_MysqL.c:630: warning: passing argument 1 of ‘MysqL_init’ from incompatible pointer type
/usr/include/MysqL/MysqL.h:380: note: expected ‘struct MysqL *’ but argument is of type ‘char * (*)[1]’
_MysqL.c:633: error: ‘_MysqL_ConnectionObject’ has no member named ‘connection’
_MysqL.c:634: warning: passing argument 1 of ‘MysqL_options’ from incompatible pointer type
/usr/include/MysqL/MysqL.h:445: note: expected ‘struct MysqL *’ but argument is of type ‘char * (*)[1]’
_MysqL.c:639: error: ‘_MysqL_ConnectionObject’ has no member named ‘connection’
_MysqL.c:640: warning: passing argument 1 of ‘MysqL_options’ from incompatible pointer type
/usr/include/MysqL/MysqL.h:445: note: expected ‘struct MysqL *’ but argument is of type ‘char * (*)[1]’
_MysqL.c:644: error: ‘_MysqL_ConnectionObject’ has no member named ‘connection’
_MysqL.c:644: warning: passing argument 1 of ‘MysqL_options’ from incompatible pointer type
/usr/include/MysqL/MysqL.h:445: note: expected ‘struct MysqL *’ but argument is of type ‘char * (*)[1]’
_MysqL.c:648: error: ‘_MysqL_ConnectionObject’ has no member named ‘connection’
_MysqL.c:648: warning: passing argument 1 of ‘MysqL_options’ from incompatible pointer type
/usr/include/MysqL/MysqL.h:445: note: expected ‘struct MysqL *’ but argument is of type ‘char * (*)[1]’
_MysqL.c:649: warning: comparison of distinct pointer types lacks a cast
_MysqL.c:650: error: ‘_MysqL_ConnectionObject’ has no member named ‘connection’
_MysqL.c:650: warning: passing argument 1 of ‘MysqL_options’ from incompatible pointer type
/usr/include/MysqL/MysqL.h:445: note: expected ‘struct MysqL *’ but argument is of type ‘char * (*)[1]’
_MysqL.c:651: warning: comparison of distinct pointer types lacks a cast
_MysqL.c:652: error: ‘_MysqL_ConnectionObject’ has no member named ‘connection’
_MysqL.c:652: warning: passing argument 1 of ‘MysqL_options’ from incompatible pointer type
/usr/include/MysqL/MysqL.h:445: note: expected ‘struct MysqL *’ but argument is of type ‘char * (*)[1]’
_MysqL.c:653: warning: comparison of distinct pointer types lacks a cast
_MysqL.c:654: error: ‘_MysqL_ConnectionObject’ has no member named ‘connection’
_MysqL.c:654: warning: passing argument 1 of ‘MysqL_options’ from incompatible pointer type
/usr/include/MysqL/MysqL.h:445: note: expected ‘struct MysqL *’ but argument is of type ‘char * (*)[1]’
_MysqL.c:657: error: ‘_MysqL_ConnectionObject’ has no member named ‘connection’
_MysqL.c:657: warning: passing argument 1 of ‘MysqL_options’ from incompatible pointer type
/usr/include/MysqL/MysqL.h:445: note: expected ‘struct MysqL *’ but argument is of type ‘char * (*)[1]’
_MysqL.c:661: error: ‘_MysqL_ConnectionObject’ has no member named ‘connection’
_MysqL.c:662: warning: passing argument 1 of ‘MysqL_ssl_set’ from incompatible pointer type
/usr/include/MysqL/MysqL.h:381: note: expected ‘struct MysqL *’ but argument is of type ‘char * (*)[1]’
_MysqL.c:665: error: ‘_MysqL_ConnectionObject’ has no member named ‘connection’
_MysqL.c:666: warning: passing argument 1 of ‘MysqL_real_connect’ from incompatible pointer type
/usr/include/MysqL/MysqL.h:387: note: expected ‘struct MysqL *’ but argument is of type ‘char * (*)[1]’
_MysqL.c:668: error: ‘Py_END_ALLOW_THREADS’ undeclared (first use in this function)
_MysqL.c:668: warning: statement with no effect
_MysqL.c:677: warning: statement with no effect
_MysqL.c:683: error: ‘_MysqL_ConnectionObject’ has no member named ‘converter’
_MysqL.c:683: warning: statement with no effect
_MysqL.c:691: error: ‘_MysqL_ConnectionObject’ has no member named ‘open’
_MysqL.c:691: warning: statement with no effect
_MysqL.c: At top level:
_MysqL.c:749: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c: In function ‘_MysqL_ConnectionObject_clear’:
_MysqL.c:781: error: ‘_MysqL_ConnectionObject’ has no member named ‘converter’
_MysqL.c:782: error: ‘_MysqL_ConnectionObject’ has no member named ‘converter’
_MysqL.c:782: error: ‘NULL’ undeclared (first use in this function)
_MysqL.c:782: warning: statement with no effect
_MysqL.c: At top level:
_MysqL.c:789: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:817: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:833: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:851: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:870: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:896: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:918: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:950: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:976: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1003: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1022: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1039: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1055: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1077: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1124: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1167: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1169: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1203: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1233: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1267: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1299: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1335: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1359: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1389: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1414: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1453: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1492: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1497: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_MysqL.c:1500: error: expected declaration specifiers or ‘...’ before ‘_PYFUNC’
_MysqL.c: In function ‘_MysqL__fetch_row’:
_MysqL.c:1506: error: ‘PyObject’ undeclared (first use in this function)
_MysqL.c:1506: error: ‘v’ undeclared (first use in this function)
_MysqL.c:1506: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_MysqL.c:1506: warning: statement with no effect
_MysqL.c:1507: error: ‘_MysqL_ResultObject’ has no member named ‘use’
_MysqL.c:1508: error: ‘_MysqL_ResultObject’ has no member named ‘result’
_MysqL.c:1508: warning: passing argument 1 of ‘MysqL_fetch_row’ from incompatible pointer type
/usr/include/MysqL/MysqL.h:454: note: expected ‘struct MysqL_RES *’ but argument is of type ‘char **’
_MysqL.c:1510: error: ‘Py_BEGIN_ALLOW_THREADS’ undeclared (first use in this function)
_MysqL.c:1510: warning: statement with no effect
_MysqL.c:1511: error: ‘_MysqL_ResultObject’ has no member named ‘result’
_MysqL.c:1511: warning: passing argument 1 of ‘MysqL_fetch_row’ from incompatible pointer type
/usr/include/MysqL/MysqL.h:454: note: expected ‘struct MysqL_RES *’ but argument is of type ‘char **’
_MysqL.c:1512: error: ‘Py_END_ALLOW_THREADS’ undeclared (first use in this function)
_MysqL.c:1512: warning: statement with no effect
_MysqL.c:1514: error: ‘_MysqL_ResultObject’ has no member named ‘conn’
_MysqL.c:1514: error: ‘_MysqL_ConnectionObject’ has no member named ‘connection’
_MysqL.c:1514: warning: passing argument 1 of ‘MysqL_errno’ from incompatible pointer type
/usr/include/MysqL/MysqL.h:371: note: expected ‘struct MysqL *’ but argument is of type ‘char * (*)[1]’
_MysqL.c:1515: error: ‘_MysqL_ResultObject’ has no member named ‘conn’
_MysqL.c:1519: warning: implicit declaration of function ‘_PyTuple_Resize’
_MysqL.c:1519: error: ‘r’ undeclared (first use in this function)
_MysqL.c:1522: warning: implicit declaration of function ‘convert_row’
_MysqL.c:1522: warning: statement with no effect
_MysqL.c: At top level:
_MysqL.c:1540: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1619: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1647: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1673: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1713: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1755: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1774: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1793: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1808: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1828: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1867: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1885: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1908: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1925: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1941: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1970: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:1993: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:2023: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:2045: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:2072: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:2098: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:2139: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:2159: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c: In function ‘_MysqL_ConnectionObject_dealloc’:
_MysqL.c:2193: error: ‘PyObject’ undeclared (first use in this function)
_MysqL.c:2193: error: ‘o’ undeclared (first use in this function)
_MysqL.c:2193: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
_MysqL.c:2193: warning: statement with no effect
_MysqL.c:2196: error: ‘_MysqL_ConnectionObject’ has no member named ‘open’
_MysqL.c:2197: warning: implicit declaration of function ‘_MysqL_ConnectionObject_close’
_MysqL.c:2197: error: ‘NULL’ undeclared (first use in this function)
_MysqL.c:2197: warning: statement with no effect
_MysqL.c:2200: warning: implicit declaration of function ‘PyMem_Free’
_MysqL.c: At top level:
_MysqL.c:2203: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:2224: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:2239: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:2261: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c: In function ‘_MysqL_ResultObject_dealloc’:
_MysqL.c:2283: error: ‘_MysqL_ResultObject’ has no member named ‘result’
_MysqL.c:2283: warning: passing argument 1 of ‘MysqL_free_result’ from incompatible pointer type
/usr/include/MysqL/MysqL.h:447: note: expected ‘struct MysqL_RES *’ but argument is of type ‘char **’
_MysqL.c: At top level:
_MysqL.c:2288: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:2302: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘_MysqL_ConnectionObject_methods’
_MysqL.c:2517: error: array type has incomplete element type
_MysqL.c:2518: error: ‘T_INT’ undeclared here (not in a function)
_MysqL.c:2518: warning: implicit declaration of function ‘offsetof’
_MysqL.c:2518: error: expected expression before ‘_MysqL_ConnectionObject’
_MysqL.c:2518: error: ‘READONLY’ undeclared here (not in a function)
_MysqL.c:2525: error: ‘T_OBJECT’ undeclared here (not in a function)
_MysqL.c:2525: error: expected expression before ‘_MysqL_ConnectionObject’
_MysqL.c:2532: error: ‘T_UINT’ undeclared here (not in a function)
_MysqL.c:2532: error: expected expression before ‘_MysqL_ConnectionObject’
_MysqL.c:2539: error: expected expression before ‘_MysqL_ConnectionObject’
_MysqL.c:2546: error: expected expression before ‘_MysqL_ConnectionObject’
_MysqL.c:2553: error: ‘NULL’ undeclared here (not in a function)
_MysqL.c:2556: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘_MysqL_ResultObject_methods’
_MysqL.c:2608: error: array type has incomplete element type
_MysqL.c:2609: error: expected expression before ‘_MysqL_ResultObject’
_MysqL.c:2619: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:2649: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:2681: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_MysqL.c: In function ‘_MysqL_ConnectionObject_setattr’:
_MysqL.c:2683: error: ‘v’ undeclared (first use in this function)
_MysqL.c:2684: warning: implicit declaration of function ‘PyErr_SetString’
_MysqL.c:2684: error: ‘PyExc_AttributeError’ undeclared (first use in this function)
_MysqL.c:2689: warning: implicit declaration of function ‘PyMember_Set’
_MysqL.c: At top level:
_MysqL.c:2706: error: expected declaration specifiers or ‘...’ before ‘PyObject’
_MysqL.c: In function ‘_MysqL_ResultObject_setattr’:
_MysqL.c:2708: error: ‘v’ undeclared (first use in this function)
_MysqL.c:2709: error: ‘PyExc_AttributeError’ undeclared (first use in this function)
_MysqL.c: At top level:
_MysqL.c:2727: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘_MysqL_ConnectionObject_Type’
_MysqL.c:2815: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘_MysqL_ResultObject_Type’
_MysqL.c:2905: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘_MysqL_methods’
_MysqL.c:2977: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
_MysqL.c:3022: warning: return type defaults to ‘int’
_MysqL.c: In function ‘DL_EXPORT’:
_MysqL.c:3022: error: expected declaration specifiers before ‘init_MysqL’
_MysqL.c:3130: error: expected ‘{’ at end of input
error: Setup script exited with error: command 'gcc' Failed with exit status 1
我想你需要先安装python开发库:
yum install python-devel

在CentOs中安装mysql-python返回错误的更多相关文章

  1. 如何使用iOS SDK保存LinkedIn访问令牌?

    我在我的iOS应用程序中使用LinkedIn.我想保存访问令牌以供将来使用.令牌属于非属性类型,无法直接保存在NSUserDefaults中.我尝试使用NSKeyedArchiver,但我得到了输出:令牌中的文本即将到来,但值将为空.代码段1:我也尝试像这样保存,但结果是一样的:代码段2:我的编码或访问令牌有什么问题需要一些特殊技术来保存吗?请建议.解决方法这就是我拯救的方式.它对我有用.希望它有所帮助以这种方式使用保存的responseBody我希望这次我很清楚

  2. 为什么这个OpenGL ES 2.0着色器不能在iOS上使用我的VBO?

    如果有人能够了解这里出了什么问题,也许是对gl命令或其他一些不兼容的命令序列的错误排序,我将非常感谢你的帮助.尽管谷歌在“OpenGLES2.0编程指南”中进行了大量研究和研究,但我一直试图让这段代码整天都没有成功.我正在尝试在iPhone上的OpenGLES2.0中使用顶点缓冲区对象和自定义着色器.我试图交错来自以下类型的一系列自定义结构的顶点数据:位置,半径和颜色字节分别考虑顶点位置,点大小和

  3. IOS Facebook身份验证使用node.js passport-facebook-token

    我正在尝试使用来自IOS应用程序的passport-facebook-token对node.jsapi进行身份验证.我有用户名和密码验证设置,并通过护照和护照-facebook-token设置正常工作.我只是无法弄清楚将访问令牌发送到API所需的HTTP请求语法.任何帮助都将受到大力赞赏.谢谢.解决方法确定设法从passport-facebook-token的策略文件中找出答案这个需要:http://URL?access_token=[访问令牌]从IOS我只是用以下方法测试:希望这有助于其他人.

  4. 解析条纹iOS main.js

    我真的很难让ParseStripe在我的项目中工作.此时,我想要最简单的工作版本,允许我向用户收费.我找到答案的最接近的事情如下:SimplestExampleI’veFound当我使用上面链接中的更正代码时,我的秘密得到以下错误:请帮助=**(这太令人沮丧了.————-更新—————-其他一些帖子也有类似的错误,看起来最新版本的ParseCloud代码应该归咎于:1.6.0.在控制台视图中使用以

  5. ios – 将两个字符串转换为一组布尔值的快速方法是什么?

    我有一个长字符串,我想转换为一个布尔值数组.而且它需要很多次,很快.我天真的尝试是这样的:但这比我想要的要慢很多.我的剖析告诉我,地图是减速的地方,但我不知道我能做多么简单.我觉得如果没有Swift’s/ObjC的开销,这样做会很快.在C中,我认为这是一个简单的循环,其中一个字节的内存与一个常量进行比较,但我不知道我应该看的是什么函数或语法.有更好的办法吗?

  6. 从iOS应用程序发送帖子到PHP脚本不工作…简单的解决方案就像

    我之前已经做了好几次了但是由于某些原因我无法通过这个帖子…我尝试了设置为_POST且没有的变量的PHP脚本……当它们未设置为发布时它工作精细.这是我的iOS代码:这里是PHP的一大块,POST变量不在正确的位置?我想这对于更有经验的开发人员来说是一个相当简单的答案,感谢您的帮助!解决方法$_POST是一个数组,而不是一个函数.您需要使用方括号来访问数组索引:

  7. 在iOS上默认是char签名还是未签名?

    默认情况下,iOS上是否签名或未签名?(我认为这将是一个很好的回答问题,但奇怪的是谷歌没有任何用处!

  8. ios – 如何创建一个本机显示浮动窗口的ANE

    如何在Xcode中创建本机窗口并将其与MobileFlex应用程序集成.本机窗口应该与StageWebView组件类似,其中本机内容浮动在Flex应用程序的其余部分的矩形区域中.解决方法作为一名灵活的程序员,这是一个繁琐的过程,花了我几个星期才弄明白.希望这将有助于其他一些Xcode新手.首先,您必须对Objective-C和Xcode有基本的了解.您应该能够创建一个简单的HelloWorldXc

  9. Swift基础-0003

  10. 基于Swift语言开发微信、QQ和微博的SSO授权登录代码分析

    一,总体架构1,引入第三方库除了必须引入对应的登录SDK外,额外引入了SDWebImage,SVProgressHUD,看名字大家都明白吧,引入登录SDK请各自看官方的开发文档,需要加入什么系统库文件,需要配置OtherLinkerFlags等,请参考各自官方文档即可;2,配置连接桥文件因为创建的工程是基于Swift语言,目前官方SDK和其它三方库都是用OC写的,所以为了在swift中调用oc代码

随机推荐

  1. 在airgapped(离线)CentOS 6系统上安装yum软件包

    我有一个CentOS6系统,出于安全考虑,它已经被空气泄漏.它可能从未连接到互联网,如果有,它很长时间没有更新.我想将所有.rpm软件包放在一个驱动器上,这样它们就可以脱机安装而无需查询互联网.但是,我在测试VM上遇到的问题是,即使指定了本地路径,yum仍然会挂起并尝试从在线存储库进行更新.另外,有没有办法使用yum-utils/yumdownloader轻松获取该包的所有依赖项和所有依赖项?目前

  2. centos – 命名在日志旋转后停止记录到rsyslog

    CentOS6.2,绑定9.7.3,rsyslog4.6.2我最近设置了一个服务器,我注意到在日志轮换后,named已停止记录到/var/log/messages.我认为这很奇怪,因为所有日志记录都是通过rsyslog进行的,并且named不会直接写入日志文件.这更奇怪,因为我在更新区域文件后命名了HUPed,但它仍然没有记录.在我停止并重新启动命名后,记录恢复.这里发生了什么?

  3. centos – 显示错误的磁盘大小

    对于其中一个磁盘,Df-h在我的服务器上显示错误的空白区域:Cpanel表明它只有34GB免费,但还有更多.几分钟前,我删除了超过80GB的日志文件.所以,我确信它完全错了.fdisk-l/dev/sda2也显示错误:如果没有格式化,我该怎么做才能解决这个问题?并且打开文件描述符就是它需要使用才能做到这一点.所以…使用“lsof”并查找已删除的文件.重新启动写入日志文件的服务,你很可能会看到空间可用.

  4. 如何在centos 6.9上安装docker-ce 17?

    我目前正在尝试在centOS6.9服务器上安装docker-ce17,但是,当运行yuminstalldocker-ce时,我收到以下错误:如果我用跳过的标志运行它我仍然得到相同的消息,有没有人知道这方面的方法?

  5. centos – 闲置工作站的异常负载平均值

    我有一个新的工作站,具有不寻常的高负载平均值.机器规格是:>至强cpu>256GB的RAM>4x512GBSSD连接到LSI2108RAID控制器我从livecd安装了CentOS6.564位,配置了分区,网络,用户/组,并安装了一些软件,如开发工具和MATLAB.在启动几分钟后,工作站负载平均值的值介于0.5到0.9之间.但它没有做任何事情.因此我无法理解为什么负载平均值如此之高.你能帮我诊断一下这个问题吗?

  6. centos – Cryptsetup luks – 检查内核是否支持aes-xts-plain64密码

    我在CentOS5上使用cryptsetupluks加密加密了一堆硬盘.一切都很好,直到我将系统升级到CentOS6.现在我再也无法安装磁盘了.使用我的关键短语装载:我收到此错误:在/var/log/messages中:有关如何装载的任何想法?找到解决方案问题是驱动器使用大约512个字符长的交互式关键短语加密.出于某种原因,CentOS6中的新内核模块在由旧版本创建时无法正确读取512个字符的加密密钥.似乎只会影响内核或cryptsetup的不同版本,因为在同一系统上创建和打开时,512字符的密钥将起作用

  7. centos – 大量ssh登录尝试

    22个我今天登录CentOS盒找到以下内容这是过去3天内的11次登录尝试.WTF?请注意,这是我从我的提供商处获得的全新IP,该盒子是全新的.我还没有发布任何关于此框的内容.为什么我会进行如此大量的登录尝试?是某种IP/端口扫描?基本上有4名匪徒,其中2名来自中国,1名来自香港,1名来自Verizon.这只发生在SSH上.HTTP上没有问题.我应该将罪魁祸首子网路由吗?你们有什么建议?

  8. centos – kswap使用100%的CPU,即使有100GB的RAM也可用

    >Linux内核是否应该足够智能,只需从内存中清除旧缓存页而不是启动kswap?

  9. centos – Azure将VM从A2 / 3调整为DS2 v2

    我正在尝试调整前一段时间创建的几个AzureVM,从基本的A3和标准A3到标准的DS2v2.我似乎没有能力调整到这个大小的VM.必须从头开始重建服务器会有点痛苦.如果它有所不同我在VM中运行CentOS,每个都有一个带有应用程序和操作系统的磁盘.任何人都可以告诉我是否可以在不删除磁盘的情况下删除VM,创建新VM然后将磁盘附加到新VM?

  10. centos – 广泛使用RAM时服务器计算速度减慢

    我在非常具体的情况下遇到服务器速度下降的问题.事实是:>1)我使用计算应用WRF>2)我使用双XeonE5-2620v3和128GBRAM(NUMA架构–可能与问题有关!

返回
顶部