Erro ao instalar o mysql no centos 6.7

1
Error: Package: 2:postfix-2.6.6-6.el6_7.1.x86_64 (@updates)
       Requires: libmysqlclient.so.16()(64bit)
       Removing: mysql-libs-5.1.73-5.el6_6.x86_64 (@base)
           libmysqlclient.so.16()(64bit)
       Obsoleted By: mysql-community-libs-5.6.29-2.el7.x86_64 (mysql56-community)
           Not found Error: Package: nagios-plugins-mysql-2.0.3-3.el6.x86_64 (@epel)
       Requires: libmysqlclient.so.16(libmysqlclient_16)(64bit)
       Removing: mysql-libs-5.1.73-5.el6_6.x86_64 (@base)
           libmysqlclient.so.16(libmysqlclient_16)(64bit)
       Obsoleted By: mysql-community-libs-5.6.29-2.el7.x86_64 (mysql56-community)
           Not found Error: Package: 2:postfix-2.6.6-6.el6_7.1.x86_64 (@updates)
       Requires: libmysqlclient.so.16(libmysqlclient_16)(64bit)
       Removing: mysql-libs-5.1.73-5.el6_6.x86_64 (@base)
           libmysqlclient.so.16(libmysqlclient_16)(64bit)
       Obsoleted By: mysql-community-libs-5.6.29-2.el7.x86_64 (mysql56-community)
           Not found Error: Package: mysql-community-libs-5.6.29-2.el7.x86_64 (mysql56-community)
       Requires: libc.so.6(GLIBC_2.17)(64bit)Error: Package: nagios-plugins-mysql-2.0.3-3.el6.x86_64 (@epel)
       Requires: libmysqlclient.so.16()(64bit)
       Removing: mysql-libs-5.1.73-5.el6_6.x86_64 (@base)
           libmysqlclient.so.16()(64bit)
       Obsoleted By: mysql-community-libs-5.6.29-2.el7.x86_64 (mysql56-community)
           Not found  You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest

Enfrentando isto depois de

sudo rpm -Uvh http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm

    
por Gaurav 25.02.2016 / 18:59

2 respostas

1

Eu recomendaria usar o repositório IUS . Porque foi especialmente projetado para o Red Hat Enterprise Linux (RHEL) e o CentOS.

# wget https://dl.iuscommunity.org/pub/ius/IUS-COMMUNITY-GPG-KEY -O /etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY
# rpm --import /etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY
# yum -y install https://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-14.ius.centos6.noarch.rpm

Mas infelizmente não há maneira fácil de fazer isso. É um pouco complicado

# wget https://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/mysql56u-libs-5.6.29-1.ius.centos6.x86_64.rpm  
# rpm -ivh --nodeps --force mysql56u-libs-5.6.29-1.ius.centos6.x86_64.rpm
Preparing...                ########################################### [100%]
   1:mysql56u-libs          ########################################### [100%]

# yum erase mysql-libs   

Depois disso você pode instalar o servidor mysql via yum como normalmente

# yum install mysql56u-server.x86_64 mysql56u.x86_64 mysql56u-common.x86_64 mysqlclient16.x86_64

O pacote mysqlclient16 é apenas substituir por mysql-lib para compatibilidade com versões anteriores

# yum info mysqlclient16
Name        : mysqlclient16
Arch        : x86_64
Version     : 5.1.61
Release     : 4.ius.centos6
Size        : 4.1 M
Repo        : ius
Summary     : Backlevel MySQL shared libraries.
URL         : http://www.mysql.com
License     : GPL
Description : This package contains backlevel versions of the MySQL client libraries
            : for use with applications linked against them.  These shared libraries
            : were created using MySQL 5.1.61.

Se você precisar do mysql 5.5 / 5.7 apenas substitua mysql56u por mysql55 / mysql57u

    
por 25.02.2016 / 19:54
1

http://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/#repo-qg-yum-fresh-install

Ao seguir este link e remover o anterior executando

sudo rpm -e http://repo.mysql.com/mysql-community-release-el7-5.noarch 

Eu resolvi meu problema.

Explicação: Eu estava tentando instalar a partir de um repositório MySQL contendo RPMs criados para o Redhat Enterprise Linux 7 em um SO compatível com RHEL 6. Isso leva a várias incompatibilidades de dependência. Mudar para o repositório correto do MySQL resolve o problema.

    
por 25.02.2016 / 19:29