종속성으로 인해 RHEL에 패키지를 설치할 수 없습니다.

종속성으로 인해 RHEL에 패키지를 설치할 수 없습니다.

패키지를 설치하려고 하는데 종속성 오류가 계속 발생합니다.

EPEL, IUS, REMI 리포지토리를 설치했습니다.

예:

yum install gcc

나는 얻다

Error: Package: devtoolset-2-gcc-4.8.2-15.1.el6.x86_64 (slc6-devtoolset) 
requires: glibc-devel >= 2.2.90-12   (and other dependencies)

glibc(또는 기타 종속성)를 설치하려고 할 때

yum install glibc-devel*

알겠어요

no package glibc-devel* available.  Nothing to do.


yum list installed |grep glibc* 

설치된 glibc-devel이 표시되지 않습니다.

RHEL 버전 = 2.6.32-358.el6.x86_64

[root@localhost yum.repos.d]# yum repolist all
Loaded plugins: product-id, refresh-packagekit, replace, security, subscription-
              : manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repo id                        repo name                          status
InstallMedia                   Red Hat Enterprise Linux 6.4       disabled
epel                           Extra Packages for Enterprise Linu enabled: 11,141
epel-debuginfo                 Extra Packages for Enterprise Linu disabled
epel-source                    Extra Packages for Enterprise Linu disabled
epel-testing                   Extra Packages for Enterprise Linu disabled
epel-testing-debuginfo         Extra Packages for Enterprise Linu disabled
epel-testing-source            Extra Packages for Enterprise Linu disabled
ius                            IUS Community Packages for Enterpr enabled:    232
ius-archive                    IUS Community Packages for Enterpr disabled
ius-archive-debuginfo          IUS Community Packages for Enterpr disabled
ius-archive-source             IUS Community Packages for Enterpr disabled
ius-debuginfo                  IUS Community Packages for Enterpr disabled
ius-dev                        IUS Community Packages for Enterpr enabled:     25
ius-dev-debuginfo              IUS Community Packages for Enterpr disabled
ius-dev-source                 IUS Community Packages for Enterpr disabled
ius-source                     IUS Community Packages for Enterpr disabled
ius-testing                    IUS Community Packages for Enterpr disabled
ius-testing-debuginfo          IUS Community Packages for Enterpr disabled
ius-testing-source             IUS Community Packages for Enterpr disabled
pgdg93                         PostgreSQL 9.3 6Server - x86_64    enabled:    256
pgdg93-source                  PostgreSQL 9.3 6Server - x86_64 -  disabled
remi                           Les RPM de remi pour Enterprise Li disabled
remi-debuginfo                 Les RPM de remi pour Enterprise Li disabled
remi-php55                     Les RPM de remi de PHP 5.5 pour En disabled
remi-php55-debuginfo           Les RPM de remi de PHP 5.5 pour En disabled
remi-php56                     Les RPM de remi de PHP 5.6 pour En disabled
remi-php56-debuginfo           Les RPM de remi de PHP 5.6 pour En disabled
remi-test                      Les RPM de remi en test pour Enter disabled
remi-test-debuginfo            Les RPM de remi en test pour Enter disabled
rhel-source                    Red Hat Enterprise Linux 6Server - disabled
rhel-source-beta               Red Hat Enterprise Linux 6Server B disabled
rpmforge                       RHEL 6Server - RPMforge.net - dag  enabled:  4,718
rpmforge-extras                RHEL 6Server - RPMforge.net - extr disabled
rpmforge-testing               RHEL 6Server - RPMforge.net - test disabled
slc6-devtoolset                Scientific Linux CERN 6 (SLC6) - D enabled:    458
slc6-devtoolset-debug          Scientific Linux CERN 6 (SLC6) - D disabled
slc6-devtoolset-source         Scientific Linux CERN 6 (SLC6) - D disabled
slc6-devtoolset-testing        Scientific Linux CERN 6 (SLC6) - D disabled
slc6-devtoolset-testing-debug  Scientific Linux CERN 6 (SLC6) - D disabled
slc6-devtoolset-testing-source Scientific Linux CERN 6 (SLC6) - D disabled
slc6-os                        Scientific Linux CERN 6 (SLC6) bas disabled
webtatic                       Webtatic Repository 6Server - x86_ enabled:    383
webtatic-debuginfo             Webtatic Repository 6Server - x86_ disabled
webtatic-source                Webtatic Repository 6Server - x86_ disabled
repolist: 17,213

답변1

gcc다음에서 패키지를 설치 해야 합니다 .

slc6-os.repo또는slc6-updates.repo

그런 다음 버전을 사용하는 대신 거기에서 종속성도 제공됩니다 devtoolset.

Yum 저장소 항목

/etc/yum.repos.d/slc6-os.repo
/etc/yum.repos.d/slc6-updates.repo
/etc/yum.repos.d/slc6-extras.repo

설치 참고 사항

장소:

slc6-os.repo
slc6-updates.repo
slc6-extras.repo

GPG 키 가져오기:

rpm --import http://linuxsoft.cern.ch/cern/slc6X/x86_64/RPM-GPG-KEY-cern

답변2

glibc-devel은 기본 저장소의 일부여야 하며 저장소와 일부 충돌이 있을 수 있습니다.

추가한 추가 저장소를 비활성화하고 다시 시도하십시오.

당신은 또한 확인해야합니다우선순위타사 저장소가 기본 패키지를 대체하지 못하게 하거나 기본/업데이트가 타사 패키지를 대체하는 것을 방지할 수 있는 플러그인입니다.

관련 정보