I usually do without  "--with-mysql-dir" i.e

./configure --with-mysql

and it works fine for me.

Dante Moreno wrote:
Hi Nikos,
I don't get what you mean by "update when compiling" how you do that? What i found was that this file had the correct path:

  #cat /etc/ld.so.conf.d/mysql-x86_64.conf

  /usr/lib64/mysql

Any ideas?
Thanks,

Dante

2009/3/20 Nikos Balkanas <nbalka...@gmail.com <mailto:nbalka...@gmail.com>>

    Hi,
Update your LD_LIBRARY_PATH when compiling. Well, that is for
    Solaris. I believe for Linux it is in /etc/ldso.conf or something
    like that.
BR,
    Nikos

        ----- Original Message -----
        *From:* Dante Moreno <mailto:dante.more...@gmail.com>
        *To:* users@kannel.org <mailto:users@kannel.org>
        *Sent:* Saturday, March 21, 2009 12:06 AM
        *Subject:* configure mysql error

        Hi All,
        I know that this question has been asked a thousand times but
        after searching through the mail archives and google i
        couldn't find any solution. Im trying to compile kannel 1.4.3
        on a CentOS 5.2 machine. I compile it with "./configure
        --with-mysql --with-mysql-dir=/usr/lib64/mysql/" and the
        configure script stops at(i have mysql-devel installed).

            Configuring DB support ...
            checking whether to compile with MySQL support... searching
            checking for mysql_config... /usr/lib64/mysql/mysql_config
            checking mysql version... 5.0.45
            checking mysql reentrant libs... -L/usr/lib64/mysql
            -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lpthread
            -L/usr/lib64 -lssl -lcrypto
            checking for mysql_init in -lmysqlclient_r... no
            checking mysql libs... -L/usr/lib64/mysql -lmysqlclient
            -lz -lcrypt -lnsl -lm -L/usr/lib64 -lssl -lcrypto
            checking for mysql_init in -lmysqlclient... no
            configure: error: Unable to find MySQL client libraries

        The weird thing is that the libraries are in that folder, if I
        run "mysql_config --libs" i get

            -L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm
            -L/usr/lib64 -lssl -lcrypto

        Mysql is up and running without any problems. I even removed
        it and installed it again.
        Any help would be appreciated.
        Thanks!


begin:vcard
fn:James Mutuku
n:Mutuku;James
org:Agile Systems Limited;Technical Department
adr:;;P.O Box 55686-00200;Nairobi;;00200;Kenya
email;internet:jnmut...@gmail.com,jmut...@agile.co.ke
title:Lead Consultant
tel;work:+254-722-490994
tel;home:+254-722-490994
tel;cell:+254-722-490994
url:www.agile.co.ke
version:2.1
end:vcard

Reply via email to