我按照https://www.digitalocean.com/community/tutorials/how-to-install-mysql-5-6-from-official-yum-repositories上的一篇文章在CentOS上安装了MySQL 5.6。
但是当我运行: sudo yum install mysql-community-server时
我看到以下错误:
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实际上,无论我如何执行yum install mysql mysql-server,我都会得到相同的错误。我在网上搜索了一下,但是没有资源提到'systemd‘和'libstdc++.so.6’有什么问题,以及如何解决这个问题。
发布于 2015-11-27 19:07:54
之前:
yum install openssh-server wget
yum -y update列出您的repos并删除mysql-community...
yum repolist安装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在此文件中添加priority=10:
vi /etc/yum.repos.d/epel.repo
vi /etc/yum.repos.d/nginx.repo
vi /etc/yum.repos.d/remi.repo从新的repos安装将是很好的:
yum install mysql mysql-server在执行此操作后:
chkconfig --levels 235 mysqld on
service mysqld start
/usr/bin/mysql_secure_installation发布于 2015-12-24 02:11:04
对于您找不到的每个库,只需为其执行'yum provides‘,然后安装包
例如:
yum provides systemd
yum provides libstdc++.so.6然后你会做yum install systemd libstdc++,你可能需要根据你的搜索结果做一个yum install libstdc++-<version>。
https://stackoverflow.com/questions/25817742
复制相似问题