error: 'imp_sth_t' has no member named 'result'

回复 收藏
本帖最后由 iiwoai 于 2012-5-18 15:27 编辑

编译DBD-mysql时出错
perl Makefile.PL  之后make 出错
全部类似如下:
dbdimp.c:2124: error: 'imp_dbh_t' has no member named 'pmysql'
dbdimp.c:2149: error: 'imp_dbh_t' has no member named 'use_mysql_use_result'
dbdimp.c:2149: warning: statement with no effect
dbdimp.c:2151: error: 'imp_dbh_t' has no member named 'auto_reconnect'
dbdimp.c:2151: warning: statement with no effect
dbdimp.c:2153: error: 'imp_dbh_t' has no member named
...
dbdimp.c:4399: error: request for member 'auto_reconnects_failed' in something not a structure or union
dbdimp.c:4399: error: lvalue required as increment operand
dbdimp.c:4402: error: 'imp_dbh_t' has no member named 'stats'
dbdimp.c:4402: error: request for member 'auto_reconnects_ok' in something not a structure or union
dbdimp.c:4402: error: lvalue required as increment operand
dbdimp.c: In function 'mysql_db_quote':
dbdimp.c:4562: error: 'imp_dbh_t' has no member named 'pmysql'
dbdimp.c: In function 'mysql_db_last_insert_id':
dbdimp.c:4585: error: 'imp_dbh_t' has no member named 'pmysql'
dbdimp.c:4585: warning: passing argument 1 of 'Perl_sv_2mortal' makes pointer from integer without a cast
/usr/local/lib/perl5/5.10.0/x86_64-linux/CORE/proto.h:2178: note: expected 'struct SV *' but argument is of type 'int'

原因是Makefile.PL 中没有找到正确的mysql_config

重新执行
  1. perl Makefile.PL --mysql_config=/usr/local/mysql/bin/mysql_config
  2. make
2012-05-18 15:26 举报
已邀请:

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: