Dependency handling error when installing MySQL 5.6 on CentOS 6.5

I made an article here https://www.digitalocean.com/community/tutorials/how-to-install-mysql-5-6-from-official-yum-repositories for installing MySQL 5.6 on CentOS.

But when I run: sudo yum install mysql-community-server

I see the following errors:

Error: Package: mysql-community-server-5.6.20-4.el7.x86_64 (mysql56-community)
       Requires: systemd
Error: Package: mysql-community-server-5.6.20-4.el7.x86_64 (mysql56-community)
       Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

      

In fact, no matter how I do yum install mysql mysql-server, I get the same errors. I searched the web but lack of resources mentioned what is wrong with "systemd" and "libstdc ++. So.6" and how to fix it.

+3


source to share


2 answers


Before:

yum install openssh-server wget
yum -y update

      

List your repositories and remove mysql-community...

yum repolist

      

Install nessary repos:

rpm -ihv http://mirror.yandex.ru/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ihv http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
yum install yum-priorities

      



Add priority=10

to these files:

vi /etc/yum.repos.d/epel.repo
vi /etc/yum.repos.d/nginx.repo
vi /etc/yum.repos.d/remi.repo

      

And from a fresh installation of the repository it will be good:

yum install mysql mysql-server

      

Then you can:

chkconfig --levels 235 mysqld on
service mysqld start
/usr/bin/mysql_secure_installation

      

0


source


for each of the libraries you can't find just do "yum provides" for it, then install the package

eg.



yum provides systemd
yum provides libstdc++.so.6

      

then what yum install systemd libstdc++

you would do, you might need to do yum install libstdc++-<version>

depending on the search results.

0


source







All Articles