bind-9.8.2rc1安装缺少libmysqlclient解决办法
- 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
- /usr/bin/ld: cannot find -lmysqlclient
- collect2: ld returned 1 exit status
- make[2]: *** [named] Error 1
- make[2]: Leaving directory `/usr/local/src/install_bind_source/bind-9.8.2rc1/bin/named'
- make[1]: *** [subdirs] Error 1
- make[1]: Leaving directory `/usr/local/src/install_bind_source/bind-9.8.2rc1/bin'
- make: *** [subdirs] Error 1
- 由于是源码安装的mysql。安装目录为/usr/local/mysql 由以上提示信息可以看到-L/usr/local/mysql/lib -lmysqlclient
- mkdir /usr/local/mysql/lib/mysql
- ln -sf /usr/local/mysql/libmysqlclient* /usr/local/mysql/lib/mysql/
- 重新configure make立即OK,问题解决,豁然开朗,itnihao 2012-02-17于成都记录
本文转自it你好 51CTO博客,原文链接:http://blog.51cto.com/itnihao/782380,如需转载请自行联系原作者