日期:2014-05-16  浏览次数:20585 次

Warning: prerequisite DBD::mysql 1 not found错误解决方案

在使用perl编译的 DBD::mysql 的时候,进程提示无法编译成功,这里想需要我们手动进行编译相关的包文件;相关错误如下所示;

dbdimp.c: In function 鈓ysql_db_async_result?
dbdimp.c:5049: error: 釳YSQL?undeclared (first use in this function)
dbdimp.c:5049: error: 鈙vsock?undeclared (first use in this function)
dbdimp.c:5049: error: invalid operands to binary *
dbdimp.c:5049: warning: statement with no effect
dbdimp.c:5050: error: 釳YSQL_RES?undeclared (first use in this function)
dbdimp.c:5050: error: 鈅res?undeclared (first use in this function)
dbdimp.c:5050: error: invalid operands to binary *
dbdimp.c:5050: warning: statement with no effect
dbdimp.c:5051: warning: ISO C90 forbids mixed declarations and code
dbdimp.c:5054: error: 鈘esp?undeclared (first use in this function)
dbdimp.c:5055: warning: statement with no effect
dbdimp.c:5069: error: 鈏mp_dbh_t?has no member named 鈇sync_query_in_flight?
dbdimp.c:5073: error: 鈏mp_dbh_t?has no member named 鈇sync_query_in_flight?
dbdimp.c:5073: warning: comparison of distinct pointer types lacks a cast
dbdimp.c:5077: error: 鈏mp_dbh_t?has no member named 鈇sync_query_in_flight?
dbdimp.c:5077: warning: statement with no effect
dbdimp.c:5079: error: 鈏mp_dbh_t?has no member named 鈖mysql?
dbdimp.c:5079: warning: statement with no effect
dbdimp.c:5080: warning: implicit declaration of function 鈓ysql_read_query_result?
dbdimp.c:5082: warning: implicit declaration of function 鈓ysql_store_result?
dbdimp.c:5082: error: assignment of read-only location
dbdimp.c:5082: warning: statement with no effect
dbdimp.c:5085: warning: passing argument 3 of 鈓ysql_dr_error?makes pointer from integer without a cast
dbdimp.c:5086: error: wrong type argument to unary exclamation mark
dbdimp.c:5090: warning: comparison of distinct pointer types lacks a cast
dbdimp.c:5098: error: 鈓y_ulonglong?undeclared (first use in this function)
dbdimp.c:5098: warning: comparison between pointer and integer
dbdimp.c:5099: error: wrong type argument to unary exclamation mark
dbdimp.c:5100: error: 鈏mp_sth_t?has no member named 鈏nsertid?
dbdimp.c:5100: warning: statement with no effect
dbdimp.c:5106: error: 鈏mp_sth_t?has no member named 鈘esult?
dbdimp.c:5107: error: 鈏mp_sth_t?has no member named 鈊one_desc?
dbdimp.c:5107: warning: statement with no effect
dbdimp.c:5108: error: 鈏mp_sth_t?has no member named 鈌etch_done?
dbdimp.c:5108: warning: statement with no effect
dbdimp.c:5111: error: 鈏mp_sth_t?has no member named 鈝arning_count?
dbdimp.c:5111: warning: statement with no effect
dbdimp.c:5096: warning: unused variable 鈏mp_dbh?
dbdimp.c:5115: warning: passing argument 3 of 鈓ysql_dr_error?makes pointer from integer without a cast
dbdimp.c: In function 鈓ysql_db_async_ready?
dbdimp.c:5139: error: 鈏mp_dbh_t?has no member named 鈇sync_query_in_flight?
dbdimp.c:5140: error: 鈏mp_dbh_t?has no member named 鈇sync_query_in_flight?
dbdimp.c:5140: warning: comparison of distinct pointer types lacks a cast
dbdimp.c:5144: error: 鈏mp_dbh_t?has no member named 鈖mysql?
dbdimp.c:5144: error: 鈙ql_type_info_t?has no member named 鈔et?
dbdimp.c:5144: error: request for member 鈌d?in something not a structure or union
dbdimp.c:5144: warning: assignment makes integer from pointer without a cast
make: *** [dbdimp.o] Error 1
  CAPTTOFU/DBD-mysql-4.022.tar.gz
  /usr/bin/make -- NOT OK
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible
Failed during this command:
 CAPTTOFU/DBD-mysql-4.022.tar.gz              : make NO
解决方法如下,手动编译包文件即可;
[root@Slave02 ~]# ls
anaconda-ks.cfg         innotop-1.8.1.tar.gz  sleep.sh
a.pl                    input.txt             success_test.sh
a.txt                   install.log           tablesize.sql
bug.sh                  install.log.syslog    temp.tt
cmake-2.8.5.tar.gz      let.sh