Home

zhangyiqun

Thoughts, stories and ideas.

2014年以前 About Feed

30 Jan 2010
error: command ‘gcc’ failed with exit status 1的解决方法

_mysql.c: In function ‘_mysql_ResultObject_row_tell’:

_mysql.c:2082: error: ‘MYSQL_ROW_OFFSET’ undeclared (first use in this function)

_mysql.c:2082: error: expected ‘;’ before ‘r’

_mysql.c:2084: error: ‘_mysql_ConnectionObject’ has no member named ‘open’

_mysql.c:2085: error: ‘_mysql_ResultObject’ has no member named ‘use’

_mysql.c:2090: error: ‘r’ undeclared (first use in this function)

_mysql.c:2090: error: ‘_mysql_ResultObject’ has no member named ‘result’

_mysql.c:2091: error: ‘_mysql_ResultObject’ has no member named ‘result’

_mysql.c: In function ‘_mysql_ResultObject_dealloc’:

_mysql.c:2099: warning: implicit declaration of function ‘mysql_free_result’

_mysql.c:2099: error: ‘_mysql_ResultObject’ has no member named ‘result’

_mysql.c: At top level:

_mysql.c:2330: error: ‘_mysql_ConnectionObject’ has no member named ‘open’

_mysql.c:2337: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’

_mysql.c:2344: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’

_mysql.c:2351: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’

_mysql.c:2358: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’

_mysql.c:2421: error: ‘_mysql_ResultObject’ has no member named ‘converter’

_mysql.c:2421: error: initializer element is not constant

_mysql.c:2421: error: (near initialization for ‘_mysql_ResultObject_memberlist[0].offset’)

_mysql.c: In function ‘_mysql_ConnectionObject_getattr’:

_mysql.c:2443: error: ‘_mysql_ConnectionObject’ has no member named ‘open’

解决方法:

1.该编译安装mysql 同时修改# vim site.cfg

mysql_config = /path/to/mysql_config

2.使用# yum install MySQL-p*


zhangyiqun

scribble

2014年以前 About Feed