您的位置:首页 > 数据库 > MySQL

mysql安装异常

2016-06-29 08:47 507 查看
[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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: