当前位置:Gxlcms > 数据库问题 > 安装mysql过程中的异常解决

安装mysql过程中的异常解决

时间:2021-07-01 10:21:17 帮助过:3人阅读

[root@cdh1 ruanjian]# rpm -ivh mysql-community-common-5.7.10-1.el6.x86_64.rpm  warning: mysql-community-common-5.7.10-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY Preparing...                ########################################### [100%]         file /usr/share/mysql/czech/errmsg.sys from install of mysql-community-common-5.7.10-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64         file /usr/share/mysql/danish/errmsg.sys from install of mysql-community-common-5.7.10-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64         file /usr/share/mysql/dutch/errmsg.sys from install of mysql-community-common-5.7.10-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64         file /usr/share/mysql/english/errmsg.sys from install of mysql-community-common-5.7.10-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64         file /usr/share/mysql/estonian/errmsg.sys from install of mysql-community-common-5.7.10-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64         file /usr/share/mysql/french/errmsg.sys from install of mysql-community-common-5.7.10-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64         file /usr/share/mysql/german/errmsg.sys from install of mysql-community-common-5.7.10-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64         file /usr/share/mysql/greek/errmsg.sys from install of mysql-community-common-5.7.10-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64         file /usr/share/mysql/hungarian/errmsg.sys from install of mysql-community-common-5.7.10-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64         file /usr/share/mysql/italian/errmsg.sys from install of mysql-community-common-5.7.10-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64         file /usr/share/mysql/japanese/errmsg.sys from install of mysql-community-common-5.7.10-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64         file /usr/share/mysql/korean/errmsg.sys from install of mysql-community-common-5.7.10-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64         file /usr/share/mysql/norwegian-ny/errmsg.sys from install of mysql-community-common-5.7.10-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64         file /usr/share/mysql/norwegian/errmsg.sys from install of mysql-community-common-5.7.10-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64

系统自带的有依赖包,需要强行卸载

rpm -e --nodeps mysql-libs-5.1.52-1.el6_0.1.x86_64
[root@cdh1 ruanjian]# rpm -ivh mysql-community-server-5.7.10-1.el6.x86_64.rpm  warning: mysql-community-server-5.7.10-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY error: Failed dependencies:         /usr/bin/perl is needed by mysql-community-server-5.7.10-1.el6.x86_64         libaio.so.1()(64bit) is needed by mysql-community-server-5.7.10-1.el6.x86_64         libaio.so.1(LIBAIO_0.1)(64bit) is needed by mysql-community-server-5.7.10-1.el6.x86_64         libaio.so.1(LIBAIO_0.4)(64bit) is needed by mysql-community-server-5.7.10-1.el6.x86_64         libnuma.so.1()(64bit) is needed by mysql-community-server-5.7.10-1.el6.x86_64         libnuma.so.1(libnuma_1.1)(64bit) is needed by mysql-community-server-5.7.10-1.el6.x86_64         libnuma.so.1(libnuma_1.2)(64bit) is needed by mysql-community-server-5.7.10-1.el6.x86_64         perl(File::Path) is needed by mysql-community-server-5.7.10-1.el6.x86_64         perl(Getopt::Long) is needed by mysql-community-server-5.7.10-1.el6.x86_64         perl(POSIX) is needed by mysql-community-server-5.7.10-1.el6.x86_64         perl(strict) is needed by mysql-community-server-5.7.10-1.el6.x86_64
缺少依赖包,libaio和libnuma
可以从系统镜像中找到
libaio-0.3.107-10.el6.x86_64.rpm 
numactl-2.0.7-8.el6.x86_64.rpm
技术分享
技术分享技术分享技术分享技术分享技术分享技术分享perl、perl-libs、perl-Module-Pluggable、perl-Pod-Escapes、perl-Pod-Simple、perl-version
建议使用yum方式,免得缺少依赖
用yum方式安装libnuma

yum install numactl -y

yum install libaio -y

yum install perl -y

安装mysql过程中的异常解决

标签:

人气教程排行