On 7/24/07, hugolivude <[EMAIL PROTECTED]> wrote:

Thanks or all your help!

I've posted the ./configure output below.  I noticed that it says:

   checking for mysql_init in -lmysqlclient... no

Presumably that's a problem, but I don't know how to fix it!!  As I
mentioned, I have MySQL installed and it works fine.  rpm -qa
indicates:

   MySQL-server-5.0.22-0
   MySQL-devel-5.0.22-0
   MySQL-client-5.0.22-0

How do I get mysql_init set up properly, if indeed that is the source
of my problem?


Post the snippet of config.log that deals with mysql, as that will give more
detail as to why it's not finding mysql_init.  For example, mine has this:

configure:6161: checking for mysql_config
configure:6179: found /usr/bin/mysql_config
configure:6191: result: /usr/bin/mysql_config
configure:6223: checking for mysql_init in -lmysqlclient
configure:6258: gcc -o conftest -g -O2   conftest.c -lmysqlclient
-L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib64 -lssl
-lcrypto  >&5
configure:6264: $? = 0
configure:6282: result: yes

Yours will likely have several iterations of trying to find it, indicating
that the script is looking for the mysql libs in several directories and
then when it fails to find it, gives up.  Mine is only one iteration because
it was found in the first place the configure script looked.

Also, post the output of

rpm -ql MySQL-devel | grep client

and

rpm -ql MySQL-client | grep client

from the looks of the RPM package names, you aren't running the same distro
as me (CentOS), but I suspect that the problem is that your RPMs have stuck
the libraries in a non-standard place that the asterisk-addons configure
script doesn't know to look in.

Once you've figured out what that non-standard place is, it should be a
simple matter of passing "--with-mysqlclient=PATH" to ./configure to make it
look for your libs in their actual home.

--
j.
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to