Hi,
I am trying to install mydns. Whenever I try compile I get the following error:
gcc -g -O2 -fomit-frame-pointer -finline-functions -ffast-math -funsigned-char -o mydns alias.o axfr.o cache.o conf.o data.o db.o encode.o error.o listen.o main.o queue.o recursive.o reply.o resolve.o rr.o sort.o status.o task.o tcp.o udp.o update.o ../../src/lib/libmydns.a ../../lib/libmydnsutil.a -L/usr/lib/mysql -lmysqlclient -L/usr/local/lib -lz -lnsl -lm
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make[3]: *** [mydns] Error 1
make[3]: Leaving directory `/tmp/mydns-1.1.0/src/mydn
s'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/mydns-1.1.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/mydns-1.1.0'
make: *** [all] Error 2
[root@138 mydns-1.1.0]#
I see the libs in:
[root@138 lib]# cd /usr/lib
[root@138 lib]# ls mysql* -l
total 420
lrwxrwxrwx 1 root root 26 Aug 8 11:28 libmysqlclient_r.so.10 -> libmysqlclient_r.so.10.0.0
-rwxr-xr-x 1 root root 211004 Feb 21 2005 libmysqlclient_r.so.10.0.0
lrwxrwxrwx 1 root root 24 Aug 8 11:28 libmysqlclient.so.10 -> libmysqlclient.so.10.0.0
-rwxr-xr-x 1 root root 207488 Feb 21 2005 libmysqlclient.so.10.0.0
[root@138 lib]#
[root@138 mydns-1.1.0]# cd /usr
[root@138 usr]# cd lib
[root@138 lib]# cd mysql/
[root@138 mysql]# ls -l
total 420
lrwxrwxrwx 1 root root 26 Aug 8 11:28 libmysqlclient_r.so.10 -> libmysqlclient_r.so.10.0.0
-rwxr-xr-x 1 root root 211004 Feb 21 2005 libmysqlclient_r.so.10.0.0
lrwxrwxrwx 1 root root 24 Aug 8 11:28 libmysqlclient.so.10 -> libmysqlclient.so.10.0.0
-rwxr-xr-x 1 root root 207488 Feb 21 2005 libmysqlclient.so.10.0.0
[root@138 mysql]#
I tried to make clean and then ran
[root@138 mydns-1.1.0]# ./configure --with-includes=/usr/inclu
de/mysql --with-libraries=/usr/lib/
mysql
but the make still gives the same error.
I am running on CentOS.
[root@138 mydns-1.1.0]# yum list installed |grep mysql
mysql.x86_64 5.0.46-1.el4.centos installed
mysql-devel.x86_64 5.0.46-1.el4.centos installed
mysql-libs.x86_64 5.0.46-1.el4.centos installed
mysql-server.x86_64 5.0.46-1.el4.centos installed
mysqlclient10.x86_64 3.23.58-4.RHEL4.1 installed
mysqlclient10.i386 3.23.58-4.RHEL4.1 installed
mysqlclient10-devel.x86_64
3.23.58-4.RHEL4.1 installed
php-mysql.x86_64 5.1.6-3.el4s1.7 installed
[root@138 mydns-1.1.0]#
Can anybody help?
Start Free Trial