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

> 
> 
> 
> Most likely you're messed on your distro setup.Did you install mysql from 
> some 
3rd party package repository?
> If so you need to grab mysql-devel from there as well or uninstall current 
mysql and install from the correct CentOS official repo.
> 
> 
> 2013/4/2 Aakash Kumar <aakash78m <at> gmail.com>
> 
> 
> Hi,
> We are receiving the below errors. Could you guide me how to proceed further?
Appreciate your kind and quick response.
> Thanks,[root <at> cl-t110-545cl trunk]# yum install mysql-devel*
> 
> Loaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * 
base: centos.mirror.iweb.ca * extras: centos.mirrors.atwab.net
> 
>  * updates: centos.mirror.iweb.caSetting up Install ProcessResolving 
Dependencies--> Running transaction check---> Package mysql-devel.i386 0:5.0.95-
5.el5_9 set to be updated
> 
> --> Processing Dependency: mysql = 5.0.95-5.el5_9 for package: 
> mysql-devel---> 
Package mysql-devel.x86_64 0:5.1.58-jason.1 set to be updated--> Running 
transaction check---> Package mysql.i386 0:5.0.95-5.el5_9 set to be updated
> 
> --> Finished Dependency ResolutionDependencies 
Resolved========================================================================
================================================================================
================
> 
>  Package                                 Arch                               
Version                                    
Repository                                  
Size============================================================================
================================================================================
============
> 
> Installing: mysql-devel                             
i386                               5.0.95-5.el5_9                             
updates                                    2.4 M mysql-
devel                             x86_64                             5.1.58-
jason.1                             utterramblings                             
121 k
> 
> Installing for dependencies: mysql                                   
i386                               5.0.95-5.el5_9                             
updates                                    4.9 MTransaction Summary
> 
> 
================================================================================
================================================================================
========Install       3 Package(s)Upgrade       0 Package(s)Total size: 7.4 MIs 
this ok [y/N]: yDownloading Packages:Running rpm_check_debugRunning Transaction 
TestFinished Transaction TestTransaction 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
>   file /usr/share/man/man1/my_print_defaults.1.gz 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/share/man/man1/mysql.1.gz 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/share/man/man1/mysql_config.1.gz 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/share/man/man1/mysql_find_rows.1.gz 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/share/man/man1/mysql_waitpid.1.gz 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/share/man/man1/mysqlaccess.1.gz 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/share/man/man1/mysqladmin.1.gz 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/share/man/man1/mysqldump.1.gz 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/share/man/man1/mysqlshow.1.gz 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/share/mysql/charsets/Index.xml 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/share/mysql/charsets/cp1250.xml 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/share/mysql/charsets/cp1251.xml 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/share/mysql/czech/errmsg.sys 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/share/mysql/danish/errmsg.sys 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/share/mysql/dutch/errmsg.sys 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/share/mysql/english/errmsg.sys 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/share/mysql/estonian/errmsg.sys 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/share/mysql/french/errmsg.sys 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/share/mysql/german/errmsg.sys 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/share/mysql/greek/errmsg.sys 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/share/mysql/hungarian/errmsg.sys 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/share/mysql/italian/errmsg.sys 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/share/mysql/japanese/errmsg.sys 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/share/mysql/korean/errmsg.sys 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/share/mysql/norwegian-ny/errmsg.sys 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/share/mysql/norwegian/errmsg.sys 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/share/mysql/polish/errmsg.sys 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/share/mysql/portuguese/errmsg.sys 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/share/mysql/romanian/errmsg.sys 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/share/mysql/russian/errmsg.sys 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/share/mysql/serbian/errmsg.sys 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/share/mysql/slovak/errmsg.sys 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/share/mysql/spanish/errmsg.sys 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/share/mysql/swedish/errmsg.sys 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/share/mysql/ukrainian/errmsg.sys from install of mysql-5.0.95-5.el5_9.i386 
conflicts with file from package mysql-5.1.58-jason.1.x86_64Error Summary-------
------
> 
> 
> 
> On Tue, Apr 2, 2013 at 4:47 PM, spameden <spameden <at> gmail.com> wrote:
> 
> 
> 
> 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 ,

Thanks, we could fix it.

Thanks for the inputs.

Regards,





Reply via email to