gpt4 book ai didi

mysql - CentOS 6.5安装MySQL 5.6处理依赖报错

转载 作者:行者123 更新时间:2023-11-29 01:03:10 28 4
gpt4 key购买 nike

我在这里关注了一篇文章 https://www.digitalocean.com/community/tutorials/how-to-install-mysql-5-6-from-official-yum-repositories在 CentOS 上安装 MySQL 5.6。

但是当我运行时: sudo yum 安装 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'有什么问题以及如何解决这个问题。

最佳答案

之前:

yum install openssh-server wget
yum -y update

列出您的存储库并删除 mysql-community...

yum repolist

安装必要的 repo :

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

关于mysql - CentOS 6.5安装MySQL 5.6处理依赖报错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25817742/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com