spameden <spameden <at> gmail.com> writes:

> 
> 
> 
> 
> 
> HiMost likely you are missing mysql header files.
> It depends on what kind of distibution you've got.For CentOS you need to:yum 
install mysql-devel
> For debian/ubuntu:
> apt-get install mysql-dev
> 
> 
> 2013/4/2 aakash <aakash78m <at> gmail.com>Hi,
> When we are trying to compile using ./configure --with-mysql the following
> errors are noticed in the config.log file.
> Please someone help us in resolving the same.
> Thanks,
> Aakash
> Configuring DB support ...
> checking whether to compile with MySQL support... searching
> checking for mysql_config... /usr/bin/mysql_config
> checking mysql version... 5.1.58
> checking mysql reentrant libs... -rdynamic -L/usr/lib64/mysql -lmysqlclient_r 
-
> lz -lpthread -lcrypt -lnsl -lm -lpthread -lssl -lcrypto
> checking for mysql_init in -lmysqlclient_r... no
> checking mysql libs... -rdynamic -L/usr/lib64/mysql -lmysqlclient -lz -lcrypt 
-
> lnsl -lm -lssl -lcrypto
> checking for mysql_init in -lmysqlclient... no
> configure: error: Unable to find MySQL client libraries
> configure:8300: result: yes
> configure:8305: checking whether to compile with SSL support
> configure:8307: result: yes
> configure:8350: checking whether to compile with MySQL support
> configure:8372: result: searching
> configure:8376: checking for mysql_config
> configure:8395: found /usr/bin/mysql_config
> configure:8408: result: /usr/bin/mysql_config
> configure:8475: checking mysql version
> configure:8478: result: 5.1.58
> configure:8483: checking mysql reentrant libs
> configure:8485: result: -rdynamic -L/usr/lib64/mysql -lmysqlclient_r -lz -
> lpthread -lcrypt -lnsl -lm -lpthread -lssl -lcrypto
> configure:8487: checking for mysql_init in -lmysqlclient_r
> configure:8512: gcc -std=gnu99 -o conftest -g -O2 -D_XOPEN_SOURCE=600 -
> D_BSD_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/include/openssl   -
> rdynamic conftest.c -lmysqlclient_r  -rdynamic -L/usr/lib64/mysql -
> lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lpthread -lssl -lcrypto  
> -lssl 
-
> lrt -lresolv -lnsl -lm  -lpthread -lxml2 -lz -lm -L/usr/lib64 -lcrypto -lssl 
>&5
> /usr/bin/ld: cannot find -lmysqlclient_r
> collect2: ld returned 1 exit status
> configure:8512: $? = 1
> configure: failed program was:
> | /* confdefs.h */
> 
> 
> 
> 
> 
Hi,

Uname is:

Linux cl-t110-545cl.privatedns.com 2.6.18-238.19.1.el5 #1 SMP Fri Jul 15 
07:31:24 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux

It's saying it conflicting with the newer version.

Transaction Check Error:
  package mysql-5.1.58-jason.1.x86_64 (which is newer than mysql-5.0.95-
5.el5_9.i386) is already installed
  file /etc/my.cnf from install of mysql-5.0.95-5.el5_9.i386 conflicts with 
file 
from package mysql-5.1.58-jason.1.x86_64
  file /usr/bin/mysql_find_rows from install of mysql-5.0.95-5.el5_9.i386 
conflicts with file from package mysql-5.1.58-jason.1.x86_64
  file /usr/bin/mysqlaccess from install of mysql-5.0.95-5.el5_9.i386 conflicts 
with file from package mysql-5.1.58-jason.1.x86_64



Reply via email to