2012年8月12日

/usr/bin/ld: cannot find -lmysqlclient

摘要: 在make osdb工具时出现错误g++ -g -O2 -L/usr/lib/mysql -lmysqlclient -o osdb OSDB.o Benchmark.o BenchmarkSuite.o BenchmarkTest.o Configuration.o Database.o DataPopulator.o Logger.o SingleUserMode.o Timer.o tinystr.o tinyxml.o tinyxmlerror.o tinyxmlparser.o dbms/MySQLDB.o /usr/bin/ld: cannot find -lmysqlclient 阅读全文

posted @ 2012-08-12 11:55 cn三少<script></script> 阅读(450) 评论(0) 推荐(0)

解决/usr/bin/ld: cannot find -lmysqlclient错误

摘要: 类似/usr/bin/ld: cannot find -xxxx的错误有很多, 首先我们可以最简单的判断一下:这类情况一般是由于缺乏某某库文件, 又或者可能是由于已存在的库问题版本不对造成的一般都是解决的办法就是安装缺乏的devel包就可以解决, 当然还有其他的未知因素, 我们看一个实例:我在一台装centos5.2 x86_64的系统上配置php环境, 提示这个错误"/usr/bin/ld: cannot find -lmysqlclient"于是我安装了# yum -y install mysql-devel结果提示依旧, 我根据提示查看config.log/usr/b 阅读全文

posted @ 2012-08-12 11:54 cn三少<script></script> 阅读(1913) 评论(0) 推荐(0)

导航