bind-9.8.2rc1安装缺少libmysqlclient解决办法

  1.    if [ X"/usr/bin/perl" = X -o X"${MAKE_SYMTABLE:-}" = X ] ; then    gcc -g -O2 -I/usr/include/libxml2  -o named ${BASEOBJS} ${LIBS0} ../../lib/lwres/liblwres.a ../../lib/dns/libdns.a  -lgssapi_krb5 -L/usr/local/ssl/lib -lcrypto ../../lib/bind9/libbind9.a ../../lib/isccfg/libisccfg.a ../../lib/isccc/libisccc.a ../../lib/isc/libisc.a -L/usr/local/mysql/lib -lmysqlclient -lz -lcrypt -lm  -ldl -lcap  -lxml2 -lz -lm; else rm -f namedtmp0;    gcc -g -O2 -I/usr/include/libxml2  -o namedtmp0 ${BASEOBJS} ${LIBS0} ../../lib/lwres/liblwres.a ../../lib/dns/libdns.a  -lgssapi_krb5 -L/usr/local/ssl/lib -lcrypto ../../lib/bind9/libbind9.a ../../lib/isccfg/libisccfg.a ../../lib/isccc/libisccc.a ../../lib/isc/libisc.a -L/usr/local/mysql/lib -lmysqlclient -lz -lcrypt -lm  -ldl -lcap  -lxml2 -lz -lm || exit 1; rm -f named-symtbl.c named-symtbl.o; /usr/bin/perl ../../util/mksymtbl.pl -o named-symtbl.c namedtmp0 || exit 1; make named-symtbl.o || exit 1; rm -f namedtmp1;    gcc -g -O2 -I/usr/include/libxml2  -o namedtmp1 ${BASEOBJS} named-symtbl.o ${LIBS0} ../../lib/lwres/liblwres.a ../../lib/dns/libdns.a  -lgssapi_krb5 -L/usr/local/ssl/lib -lcrypto ../../lib/bind9/libbind9.a ../../lib/isccfg/libisccfg.a ../../lib/isccc/libisccc.a ../../lib/isc/libisc-nosymtbl.a -L/usr/local/mysql/lib -lmysqlclient -lz -lcrypt -lm  -ldl -lcap  -lxml2 -lz -lm || exit 1; rm -f named-symtbl.c named-symtbl.o; /usr/bin/perl ../../util/mksymtbl.pl -o named-symtbl.c namedtmp1 || exit 1; make named-symtbl.o || exit 1;    gcc -g -O2 -I/usr/include/libxml2  -o namedtmp2 ${BASEOBJS} named-symtbl.o ${LIBS0} ../../lib/lwres/liblwres.a ../../lib/dns/libdns.a  -lgssapi_krb5 -L/usr/local/ssl/lib -lcrypto ../../lib/bind9/libbind9.a ../../lib/isccfg/libisccfg.a ../../lib/isccc/libisccc.a ../../lib/isc/libisc-nosymtbl.a -L/usr/local/mysql/lib -lmysqlclient -lz -lcrypt -lm  -ldl -lcap  -lxml2 -lz -lm; /usr/bin/perl ../../util/mksymtbl.pl -o named-symtbl2.c namedtmp2; diff named-symtbl.c named-symtbl2.c || exit 1; mv namedtmp2 named; rm -f namedtmp0 namedtmp1 namedtmp2 named-symtbl2.c; fi  
  2. /usr/bin/ld: cannot find -lmysqlclient  
  3. collect2: ld returned 1 exit status  
  4. make[2]: *** [named] Error 1  
  5. make[2]: Leaving directory `/usr/local/src/install_bind_source/bind-9.8.2rc1/bin/named'  
  6. make[1]: *** [subdirs] Error 1  
  7. make[1]: Leaving directory `/usr/local/src/install_bind_source/bind-9.8.2rc1/bin'  
  8. make: *** [subdirs] Error 1  
  9.    
  10.    
  11. 由于是源码安装的mysql。安装目录为/usr/local/mysql   由以上提示信息可以看到-L/usr/local/mysql/lib -lmysqlclient   
  12. mkdir   /usr/local/mysql/lib/mysql  
  13.  ln    -sf     /usr/local/mysql/libmysqlclient*     /usr/local/mysql/lib/mysql/  
  14. 重新configure make立即OK,问题解决,豁然开朗,itnihao 2012-02-17于成都记录  
  15.