Failed dependency of php-mysql with libmysqlclient.so.16 on CentOS 6
I am unable to install php-mysql on CentOS 6 after installing MariaDB.
This means that I am unable to use PHP with MariaDB.
My system is an updated CentOS 6 Linux 2.6.32-279.2.1.el6.x86_64 #1 SMP Fri Jul 20 01:55:29 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Steps to reproduce:
Import the MariaDB key:
rpm --import http://yum.mariadb.org/RPM-GPG-KEY-MariaDB
Ad the MariaDB repository:
vim /etc/yum.repos.d/MariaDB.repo
edit the file:
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/5.5/centos6-x86
gpgcheck=1
Remove any previous MySQL and MAriaDB packages:
yum -y remove mysql*
yum -y remove MariaDB*
Install all available MariaDB packages:
yum -y install MariaBD*
Installed:
MariaDB-client.i686 0:5.5.25-1
MariaDB-common.i686 0:5.5.25-1
MariaDB-compat.i686 0:5.5.25-1
MariaDB-devel.i686 0:5.5.25-1
MariaDB-server.i686 0:5.5.25-1
MariaDB-shared.i686 0:5.5.25-1
MariaDB-test.i686 0:5.5.25-1
Trying to install php-mysql (required to use MariaDB with PHP):
yum -y install php-mysql
I get the error:
Error: Package: php-mysql-5.3.3-14.el6_3.x86_64 (updates)
Requires: libmysqlclient.so.16(libmysqlclient_16)(64bit)
Available: mysql-libs-5.1.61-4.el6.x86_64 (base)
libmysqlclient.so.16(libmysqlclient_16)(64bit)
the file libmysqlclient.so.16 is present in /usr/lib as a link to libmysqlclient.so.16.0.0 :
- ls -lah /usr/lib/libmysqlclient.so.16*
lrwxrwxrwx 1 root root 24 Aug 14 14:55 /usr/lib/libmysqlclient.so.16 -> libmysqlclient.so.16.0.0
-rwxr-xr-x 1 root root 2.0M Jun 22 01:49 /usr/lib/libmysqlclient.so.16.0.0
I searched online but I haven't found any solution to this problem.
Failed dependency of php-mysql with libmysqlclient.so.16 on CentOS 6
I am unable to install php-mysql on CentOS 6 after installing MariaDB.
This means that I am unable to use PHP with MariaDB.
My system is an updated CentOS 6 Linux 2.6.32-279.2.1.el6.x86_64 #1 SMP Fri Jul 20 01:55:29 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Steps to reproduce:
Import the MariaDB key:
rpm --import http://yum.mariadb.org/RPM-GPG-KEY-MariaDB
Ad the MariaDB repository:
vim /etc/yum.repos.d/MariaDB.repo
edit the file:
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/5.5/centos6-x86
gpgcheck=1
Remove any previous MySQL and MAriaDB packages:
yum -y remove mysql*
yum -y remove MariaDB*
Install all available MariaDB packages:
yum -y install MariaBD*
Installed:
MariaDB-client.i686 0:5.5.25-1
MariaDB-common.i686 0:5.5.25-1
MariaDB-compat.i686 0:5.5.25-1
MariaDB-devel.i686 0:5.5.25-1
MariaDB-server.i686 0:5.5.25-1
MariaDB-shared.i686 0:5.5.25-1
MariaDB-test.i686 0:5.5.25-1
Trying to install php-mysql (required to use MariaDB with PHP):
yum -y install php-mysql
I get the error:
Error: Package: php-mysql-5.3.3-14.el6_3.x86_64 (updates)
Requires: libmysqlclient.so.16(libmysqlclient_16)(64bit)
Available: mysql-libs-5.1.61-4.el6.x86_64 (base)
libmysqlclient.so.16(libmysqlclient_16)(64bit)
the file libmysqlclient.so.16 is present in /usr/lib as a link to libmysqlclient.so.16.0.0 :
lrwxrwxrwx 1 root root 24 Aug 14 14:55 /usr/lib/libmysqlclient.so.16 -> libmysqlclient.so.16.0.0
-rwxr-xr-x 1 root root 2.0M Jun 22 01:49 /usr/lib/libmysqlclient.so.16.0.0
I searched online but I haven't found any solution to this problem.