我想在CentOs上运行一个
django项目.我试图通过easy_install和pip安装
mysql–
python,但是我有两个错误.我问了这个问题,发现了一些建议,但是他们都没有帮助我.
错误是:
@H_403_3@_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开发库:
@H_403_3@yum install python-devel
原文链接:https://www.f2er.com/centos/373290.html