Instalação Ruby do CentOS - Open SSL Issue

0

Tentando instalar o ruby 2.1.2 em uma caixa centos 7, mas se deparando com um problema de dependência com o openssl

~ % ruby-install ruby

...blah blah blah...

---> Package openssl-devel.x86_64 1:1.0.1e-34.el7 will be installed
--> Processing Dependency: openssl-libs(x86-64) = 1:1.0.1e-34.el7 for package: 1:openssl-devel-1.0.1e-34.el7.x86_64
---> Package pcre-devel.x86_64 0:8.32-12.el7 will be installed
--> Finished Dependency Resolution
Error: Package: 1:openssl-devel-1.0.1e-34.el7.x86_64 (base)
           Requires: openssl-libs(x86-64) = 1:1.0.1e-34.el7
           Installed: 1:openssl-libs-1.0.1e-34.el7_0.3.x86_64 (@updates)
               openssl-libs(x86-64) = 1:1.0.1e-34.el7_0.3
           Available: 1:openssl-libs-1.0.1e-34.el7.x86_64 (base)
               openssl-libs(x86-64) = 1:1.0.1e-34.el7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
!!! Installing dependencies failed!

O mais louco é que parece que eu já tenho o pacote desejado:

~ % yum list installed |grep ssl
openssl.x86_64                  1:1.0.1e-34.el7_0.3                    @updates
openssl-libs.x86_64             1:1.0.1e-34.el7_0.3                    @updates

O que posso fazer para satisfazer a dependência SSL?

Em seguida, tentei:

~ % yum install -y openssl-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: sg2plmirror02.shr.prod.sin2.secureserver.net
 * epel: mirrors.mit.edu
 * extras: sg2plmirror02.shr.prod.sin2.secureserver.net
 * rpmforge: mirror.us.leaseweb.net
 * update: sg2plmirror02.shr.prod.sin2.secureserver.net
 * webtatic: us-east.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package openssl-devel.x86_64 1:1.0.1e-34.el7 will be installed
--> Processing Dependency: openssl-libs(x86-64) = 1:1.0.1e-34.el7 for package: 1:openssl-devel-1.0.1e-34.el7.x86_64
--> Processing Dependency: krb5-devel(x86-64) for package: 1:openssl-devel-1.0.1e-34.el7.x86_64
--> Running transaction check
---> Package krb5-devel.x86_64 0:1.11.3-49.el7 will be installed
--> Processing Dependency: libverto-devel for package: krb5-devel-1.11.3-49.el7.x86_64
--> Processing Dependency: libselinux-devel for package: krb5-devel-1.11.3-49.el7.x86_64
--> Processing Dependency: libcom_err-devel for package: krb5-devel-1.11.3-49.el7.x86_64
--> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.11.3-49.el7.x86_64
---> Package openssl-devel.x86_64 1:1.0.1e-34.el7 will be installed
--> Processing Dependency: openssl-libs(x86-64) = 1:1.0.1e-34.el7 for package: 1:openssl-devel-1.0.1e-34.el7.x86_64
--> Running transaction check
---> Package keyutils-libs-devel.x86_64 0:1.5.8-3.el7 will be installed
---> Package libcom_err-devel.x86_64 0:1.42.9-4.el7 will be installed
---> Package libselinux-devel.x86_64 0:2.2.2-6.el7 will be installed
--> Processing Dependency: libsepol-devel >= 2.1.9-1 for package: libselinux-devel-2.2.2-6.el7.x86_64
--> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.2.2-6.el7.x86_64
--> Processing Dependency: pkgconfig(libpcre) for package: libselinux-devel-2.2.2-6.el7.x86_64
---> Package libverto-devel.x86_64 0:0.2.5-4.el7 will be installed
---> Package openssl-devel.x86_64 1:1.0.1e-34.el7 will be installed
--> Processing Dependency: openssl-libs(x86-64) = 1:1.0.1e-34.el7 for package: 1:openssl-devel-1.0.1e-34.el7.x86_64
--> Running transaction check
---> Package libsepol-devel.x86_64 0:2.1.9-3.el7 will be installed
---> Package openssl-devel.x86_64 1:1.0.1e-34.el7 will be installed
--> Processing Dependency: openssl-libs(x86-64) = 1:1.0.1e-34.el7 for package: 1:openssl-devel-1.0.1e-34.el7.x86_64
---> Package pcre-devel.x86_64 0:8.32-12.el7 will be installed
--> Finished Dependency Resolution
Error: Package: 1:openssl-devel-1.0.1e-34.el7.x86_64 (base)
           Requires: openssl-libs(x86-64) = 1:1.0.1e-34.el7
           Installed: 1:openssl-libs-1.0.1e-34.el7_0.3.x86_64 (@updates)
               openssl-libs(x86-64) = 1:1.0.1e-34.el7_0.3
           Available: 1:openssl-libs-1.0.1e-34.el7.x86_64 (base)
               openssl-libs(x86-64) = 1:1.0.1e-34.el7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

A mensagem de erro é terrivelmente obscura.

    
por lfender6445 28.09.2014 / 17:00

1 resposta

0

Olhando para:

Package: 1:openssl-devel-1.0.1e-34.el7.x86_64 (base)

, lembrei-me de modificar o arquivo CentOS-Base.repo para incluir espelhos adicionais junto com algumas outras alterações ao configurar minha caixa. Infelizmente, não tenho certeza de qual alteração acionou o erro.

Consegui corrigir o problema revertendo /etc/yum.repos.d/CentOS-Base.repo para o arquivo encontrado aqui: link e executando yum install openssl

    
por 28.09.2014 / 22:49