ubuntu14.04下出现libmysqlclient.so.20找不到问题


搜了下,发现没人公布解决这个问题的方法,于是分享了下,分享让科技进步更快,大家一起加油

/usr/bin/ld: warning: libmysqlclient.so.20, needed by //usr/local/lib/libzdb.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libcrypto.so.1.0.0, needed by //usr/lib/x86_64-linux-gnu/libpq.so.5, may conflict with libcrypto.so.1.1
//usr/local/lib/libzdb.so: undefined reference to `mysql_stmt_affected_rows@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_stmt_reset@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_close@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_affected_rows@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_stmt_prepare@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_real_query@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_stmt_field_count@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_query@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_ping@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_stmt_init@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_stmt_param_count@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_stmt_execute@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_options@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_stmt_next_result@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_fetch_field_direct@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_error@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_stmt_store_result@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_stmt_result_metadata@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_stmt_bind_result@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_stmt_attr_set@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_stmt_close@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_init@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_stmt_free_result@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_stmt_error@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_stmt_fetch_column@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_real_connect@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_insert_id@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_stmt_fetch@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_ssl_set@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_stmt_bind_param@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_free_result@libmysqlclient_20.0'
//usr/local/lib/libzdb.so: undefined reference to `mysql_errno@libmysqlclient_20.0'

collect2: error: ld returned 1 exit status


解决办法:

apt-get install libzdb-dev



  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值