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 
  To: [email protected] 
  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!

Reply via email to