Advertisement

08.09.2007 at 05:00AM PDT, ID: 22751740
[x]
Attachment Details

make gives error: /usr/bin/ld: cannot find -lmysqlclient

Asked by zattz in Linux

Tags: find, cannot

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/mydns'
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/include/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
[+][-]08.09.2007 at 05:35AM PDT, ID: 19661558

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Linux
Tags: find, cannot
Sign Up Now!
Solution Provided By: jar3817
Participating Experts: 3
Solution Grade: A
 
 
[+][-]08.09.2007 at 05:52AM PDT, ID: 19661679

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]08.09.2007 at 06:39AM PDT, ID: 19662044

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.09.2007 at 07:03AM PDT, ID: 19662238

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628