yum을 통해 설치하려고 할 때 CentOS 7용 "개발 도구"는 어디서 구할 수 있나요?

yum을 통해 설치하려고 할 때 CentOS 7용 "개발 도구"는 어디서 구할 수 있나요?

저는 CentOS 7을 사용하고 있습니다. gcc를 설치하고 싶습니다(설치한 새 openssl 패키지를 사용하여 Python 3을 빌드하기 위해). 나는 여기서 공부하고 있어요 -https://stackoverflow.com/questions/19816275/no-acceptable-c-compiler-found-in-path-when-installing-python, "개발 도구"를 설치하는 것은 진실과 빛입니다. 하지만 난 못할 것 같아...

(venv) [rails@server Python-3.7.0]$ sudo yum groupinstall "Development Tools"
[sudo] password for rails: 
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.mi.incx.net
 * epel: mirror.us-midwest-1.nexcess.net
 * extras: mirror.cs.pitt.edu
 * updates: mirror.pit.teraswitch.com
Maybe run: yum groups mark install (see man yum)
No packages in any requested group available to install or update

필요한 경우 내 시스템에 대한 추가 정보는 다음과 같습니다.

(venv) [rails@server Python-3.7.0]$ uname -a
Linux server 2.6.32-042stab120.19 #1 SMP Mon Feb 20 20:05:53 MSK 2017 x86_64 x86_64 x86_64 GNU/Linux

편집하다:답변에서 제안한 대로 결과를 추가합니다...

[rails@server ~]$ sudo yum groups mark install "Development Tools"
[sudo] password for rails: 
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.ussg.iu.edu
 * epel: mirror.us-midwest-1.nexcess.net
 * extras: mirror.cs.uwp.edu
 * updates: mirror.pit.teraswitch.com
Marked install: Development Tools
[rails@server ~]$ sudo yum groups mark convert "Development Tools"
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.ussg.iu.edu
 * epel: mirror.us-midwest-1.nexcess.net
 * extras: mirror.cs.uwp.edu
 * updates: mirror.pit.teraswitch.com
Converted old style groups to objects.
[rails@server ~]$ sudo yum groupinstall "Development Tools"
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.ussg.iu.edu
 * epel: mirror.us-midwest-1.nexcess.net
 * extras: mirror.cs.uwp.edu
 * updates: mirror.pit.teraswitch.com
Maybe run: yum groups mark install (see man yum)
No packages in any requested group available to install or update

편집 2답변에 대한 의견에 대한 추가 출력 ...

[rails@server ~]$ sudo yum groupinstall "Development Tools" --setopt=group_package_types=mandatory,default,optional
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.vcu.edu
 * epel: mirror.us-midwest-1.nexcess.net
 * extras: ftp.osuosl.org
 * updates: mirror.mi.incx.net
Maybe run: yum groups mark install (see man yum)
No packages in any requested group available to install or update

이...

[rails@server ~]$ sudo yum grouplist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.vcu.edu
 * epel: mirror.us-midwest-1.nexcess.net
 * extras: repo1.ash.innoscale.net
 * updates: mirror.mi.incx.net
Available Environment Groups:
   Minimal Install
   Compute Node
   Infrastructure Server
   File and Print Server
   Cinnamon Desktop
   MATE Desktop
   Basic Web Server
   Virtualization Host
   Server with GUI
   GNOME Desktop
   KDE Plasma Workspaces
   Development and Creative Workstation
Installed Groups:
   Console Internet Tools
   Development Tools
   Electronic Lab
   Legacy UNIX Compatibility
   Milkymist
   PostgreSQL Database Server 9.6 PGDG
   Security Tools
   System Administration Tools
Available Groups:
   Cinnamon
   Compatibility Libraries
   Educational Software
   Fedora Packager
   General Purpose Desktop
   Graphical Administration Tools
   Haskell
   LXQt Desktop
   MATE
   PostgreSQL Database Server 10 PGDG
   PostgreSQL Database Server 11 PGDG
   PostgreSQL Database Server 12 PGDG
   PostgreSQL Database Server 9.5 PGDG
   Scientific Support
   Smart Card Support
   System Management
   TurboGears application framework
   Xfce
Done

편집 3:1초마다 추천(repolist) 출력...

[rails@server ~]$ sudo yum repolist all
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.trouble-free.net
 * epel: mirror.us-midwest-1.nexcess.net
 * extras: mirror.pit.teraswitch.com
 * updates: mirrors.gigenet.com
repo id                                             repo name                                                                    status
C7.0.1406-base/x86_64                               CentOS-7.0.1406 - Base                                                       disabled
C7.0.1406-centosplus/x86_64                         CentOS-7.0.1406 - CentOSPlus                                                 disabled
C7.0.1406-extras/x86_64                             CentOS-7.0.1406 - Extras                                                     disabled
C7.0.1406-fasttrack/x86_64                          CentOS-7.0.1406 - Fasttrack                                                  disabled
C7.0.1406-updates/x86_64                            CentOS-7.0.1406 - Updates                                                    disabled
C7.1.1503-base/x86_64                               CentOS-7.1.1503 - Base                                                       disabled
C7.1.1503-centosplus/x86_64                         CentOS-7.1.1503 - CentOSPlus                                                 disabled
C7.1.1503-extras/x86_64                             CentOS-7.1.1503 - Extras                                                     disabled
C7.1.1503-fasttrack/x86_64                          CentOS-7.1.1503 - Fasttrack                                                  disabled
C7.1.1503-updates/x86_64                            CentOS-7.1.1503 - Updates                                                    disabled
C7.2.1511-base/x86_64                               CentOS-7.2.1511 - Base                                                       disabled
C7.2.1511-centosplus/x86_64                         CentOS-7.2.1511 - CentOSPlus                                                 disabled
C7.2.1511-extras/x86_64                             CentOS-7.2.1511 - Extras                                                     disabled
C7.2.1511-fasttrack/x86_64                          CentOS-7.2.1511 - Fasttrack                                                  disabled
C7.2.1511-updates/x86_64                            CentOS-7.2.1511 - Updates                                                    disabled
C7.3.1611-base/x86_64                               CentOS-7.3.1611 - Base                                                       disabled
C7.3.1611-centosplus/x86_64                         CentOS-7.3.1611 - CentOSPlus                                                 disabled
C7.3.1611-extras/x86_64                             CentOS-7.3.1611 - Extras                                                     disabled
C7.3.1611-fasttrack/x86_64                          CentOS-7.3.1611 - Fasttrack                                                  disabled
C7.3.1611-updates/x86_64                            CentOS-7.3.1611 - Updates                                                    disabled
C7.4.1708-base/x86_64                               CentOS-7.4.1708 - Base                                                       disabled
C7.4.1708-centosplus/x86_64                         CentOS-7.4.1708 - CentOSPlus                                                 disabled
C7.4.1708-extras/x86_64                             CentOS-7.4.1708 - Extras                                                     disabled
C7.4.1708-fasttrack/x86_64                          CentOS-7.4.1708 - Fasttrack                                                  disabled
C7.4.1708-updates/x86_64                            CentOS-7.4.1708 - Updates                                                    disabled
C7.5.1804-base/x86_64                               CentOS-7.5.1804 - Base                                                       disabled
C7.5.1804-centosplus/x86_64                         CentOS-7.5.1804 - CentOSPlus                                                 disabled
C7.5.1804-extras/x86_64                             CentOS-7.5.1804 - Extras                                                     disabled
C7.5.1804-fasttrack/x86_64                          CentOS-7.5.1804 - Fasttrack                                                  disabled
C7.5.1804-updates/x86_64                            CentOS-7.5.1804 - Updates                                                    disabled
C7.6.1810-base/x86_64                               CentOS-7.6.1810 - Base                                                       disabled
C7.6.1810-centosplus/x86_64                         CentOS-7.6.1810 - CentOSPlus                                                 disabled
C7.6.1810-extras/x86_64                             CentOS-7.6.1810 - Extras                                                     disabled
C7.6.1810-fasttrack/x86_64                          CentOS-7.6.1810 - Fasttrack                                                  disabled
C7.6.1810-updates/x86_64                            CentOS-7.6.1810 - Updates                                                    disabled
C7.7.1908-base/x86_64                               CentOS-7.7.1908 - Base                                                       disabled
C7.7.1908-centosplus/x86_64                         CentOS-7.7.1908 - CentOSPlus                                                 disabled
C7.7.1908-extras/x86_64                             CentOS-7.7.1908 - Extras                                                     disabled
C7.7.1908-fasttrack/x86_64                          CentOS-7.7.1908 - Fasttrack                                                  disabled
C7.7.1908-updates/x86_64                            CentOS-7.7.1908 - Updates                                                    disabled
base/7/x86_64                                       CentOS-7 - Base                                                              enabled: 10,070
base-debuginfo/x86_64                               CentOS-7 - Debuginfo                                                         disabled
base-source/7                                       CentOS-7 - Base Sources                                                      disabled
c7-media                                            CentOS-7 - Media                                                             disabled
centos-kernel/7/x86_64                              CentOS LTS Kernels for x86_64                                                disabled
centos-kernel-experimental/7/x86_64                 CentOS Experimental Kernels for x86_64                                       disabled
centosplus/7/x86_64                                 CentOS-7 - Plus                                                              disabled
centosplus-source/7                                 CentOS-7 - Plus Sources                                                      disabled
cr/7/x86_64                                         CentOS-7 - cr                                                                disabled
epel/x86_64                                         Extra Packages for Enterprise Linux 7 - x86_64                               enabled: 13,266
epel-debuginfo/x86_64                               Extra Packages for Enterprise Linux 7 - x86_64 - Debug                       disabled
epel-source/x86_64                                  Extra Packages for Enterprise Linux 7 - x86_64 - Source                      disabled
epel-testing/x86_64                                 Extra Packages for Enterprise Linux 7 - Testing - x86_64                     disabled
epel-testing-debuginfo/x86_64                       Extra Packages for Enterprise Linux 7 - Testing - x86_64 - Debug             disabled
epel-testing-source/x86_64                          Extra Packages for Enterprise Linux 7 - Testing - x86_64 - Source            disabled
extras/7/x86_64                                     CentOS-7 - Extras                                                            enabled:    392
extras-source/7                                     CentOS-7 - Extras Sources                                                    disabled
fasttrack/7/x86_64                                  CentOS-7 - fasttrack                                                         disabled
google-chrome                                       google-chrome                                                                enabled:      3
pgdg-common/7/x86_64                                PostgreSQL common RPMs for RHEL/CentOS 7 - x86_64                            enabled:    288
pgdg-common-srpm-testing/7/x86_64                   PostgreSQL common testing SRPMs for RHEL/CentOS 7 - x86_64                   disabled
pgdg-common-testing/7/x86_64                        PostgreSQL common testing RPMs for RHEL/CentOS 7 - x86_64                    disabled
pgdg-source-common/7/x86_64                         PostgreSQL 12 for RHEL/CentOS 7 - x86_64 - Source                            disabled
pgdg10/7/x86_64                                     PostgreSQL 10 for RHEL/CentOS 7 - x86_64                                     enabled:    626
pgdg10-source/7/x86_64                              PostgreSQL 10 for RHEL/CentOS 7 - x86_64 - Source                            disabled
pgdg10-updates-debuginfo/7/x86_64                   PostgreSQL 10 for RHEL/CentOS 7 - x86_64 - Debuginfo                         disabled
pgdg11/7/x86_64                                     PostgreSQL 11 for RHEL/CentOS 7 - x86_64                                     enabled:    623
pgdg11-source/7/x86_64                              PostgreSQL 11 for RHEL/CentOS 7 - x86_64 - Source                            disabled
pgdg11-source-updates-testing/7/x86_64              PostgreSQL 11 for RHEL/CentOS 7 - x86_64 - Source update testing             disabled
pgdg11-updates-debuginfo/7/x86_64                   PostgreSQL 11 for RHEL/CentOS 7 - x86_64 - Debuginfo                         disabled
pgdg11-updates-testing/7/x86_64                     PostgreSQL 11 for RHEL/CentOS 7 - x86_64 - Updates testing                   disabled
pgdg11-updates-testing-debuginfo/7/x86_64           PostgreSQL 11 for RHEL/CentOS 7 - x86_64 - Debuginfo                         disabled
pgdg12/7/x86_64                                     PostgreSQL 12 for RHEL/CentOS 7 - x86_64                                     enabled:    317
pgdg12-source/7/x86_64                              PostgreSQL 12 for RHEL/CentOS 7 - x86_64 - Source                            disabled
pgdg12-source-updates-testing/7/x86_64              PostgreSQL 12 for RHEL/CentOS 7 - x86_64 - Source update testing             disabled
pgdg12-updates-debuginfo/7/x86_64                   PostgreSQL 12 for RHEL/CentOS 7 - x86_64 - Debuginfo                         disabled
pgdg12-updates-testing/7/x86_64                     PostgreSQL 12 for RHEL/CentOS 7 - x86_64 - Updates testing                   disabled
pgdg12-updates-testing-debuginfo/7/x86_64           PostgreSQL 12 for RHEL/CentOS 7 - x86_64 - Debuginfo                         disabled
pgdg13-source-updates-testing/7/x86_64              PostgreSQL 13 for RHEL/CentOS 7 - x86_64 - Source updates testing            disabled
pgdg13-updates-debuginfo/7/x86_64                   PostgreSQL 13 for RHEL/CentOS 7 - x86_64 - Debuginfo                         disabled
pgdg13-updates-testing/7/x86_64                     PostgreSQL 13 for RHEL/CentOS 7 - x86_64 - Updates testing                   disabled
pgdg13-updates-testing-debuginfo/7/x86_64           PostgreSQL 13 for RHEL/CentOS 7 - x86_64 - Debuginfo                         disabled
!pgdg94/7/x86_64                                    PostgreSQL 9.4 for RHEL/CentOS 7 - x86_64                                    disabled
pgdg94-source/7/x86_64                              PostgreSQL 9.4 for RHEL/CentOS 7 - x86_64 - Source                           disabled
pgdg95/7/x86_64                                     PostgreSQL 9.5 for RHEL/CentOS 7 - x86_64                                    enabled:    572
pgdg95-source/7/x86_64                              PostgreSQL 9.5 for RHEL/CentOS 7 - x86_64 - Source                           disabled
pgdg95-updates-debuginfo/7/x86_64                   PostgreSQL 9.5 for RHEL/CentOS 7 - x86_64 - Debuginfo                        disabled
pgdg96/7/x86_64                                     PostgreSQL 9.6 for RHEL/CentOS 7 - x86_64                                    enabled:    603
pgdg96-source/7/x86_64                              PostgreSQL 9.6 for RHEL/CentOS 7 - x86_64 - Source                           disabled
pgdg96-updates-debuginfo/7/x86_64                   PostgreSQL 9.6 for RHEL/CentOS 7 - x86_64 - Debuginfo                        disabled
updates/7/x86_64                                    CentOS-7 - Updates                                                           enabled:    245
updates-source/7                                    CentOS-7 - Updates Sources                                                   disabled

답변1

콘솔 출력에는 다음과 같이 표시됩니다. Maybe run: yum groups mark install (see man yum)-Did you do this?

다음 명령을 실행해 보십시오:

yum groups mark install "Development Tools"
yum groups mark convert "Development Tools"
yum groupinstall "Development Tools"

인용하다:Red Hat 고객 포털 토론

답변2

노력하다:

yum group list

Development Toolsyum이 다음을 찾을 수 있는지 확인하세요 Available Groups. 실패하면 다음을 시도해 보세요.

yum clean all
yum group list

그것을 찾을 수 있는지 확인하십시오. 그래도 실패하면 문제를 해결하기 위해 올바른 미러를 활성화하지 않았을 수 있습니다.

clean 명령을 다시 시도한 후 다음을 수행하십시오.

yum --disablerepo=\* --enablerepo=base,updates group list

당신이 그것을 찾을 수 있다면. 엄청난! 설치하다:

yum --disablerepo=\* --enablerepo=base,updates groupinstall "Development Tools"

그렇지 않은 경우 출력을 제공할 수 있습니까?

yum repolist all

편집하다:

출력해 주셔서 감사합니다.

내가 하나 찾았어기사"라고 다음과 같이 규정하고 있습니다.CentOS 개발 도구를 설치하려면 SSH를 사용하여 가상 서버에 연결하고 루트 사용자로 작업할 수 있어야 합니다."

사용자 "root"로 전환하고(루트 로그인 자격 증명을 모르는 경우 sudo susudo를 시도해 볼 수도 있지만 이미 시도한 것으로 보입니다...) 위 명령을 실행해 보세요.

마지막으로 다음과 같은 "소스" 저장소를 활성화해 볼 수 있습니다.

  • CentOS-7 - 기본 소스
  • CentOS-7 - 추가 소스
  • CentOS-7 - 업데이트 소스

yum update달리기를 따르는 대신 groupinstall.

그래도 문제가 해결되지 않으면 알려 주시기 바랍니다. 행운을 빌어요!

답변3

거울을 확인하고 기초, 추가 및 업데이트가 있는지 확인하십시오.

[base]
name=CentOS-7 - Base

mirrorlist=http://mirrorlist.centos.org/?release=7&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/7/os/$basearch/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[updates]
name=CentOS-7 - Updates

mirrorlist=http://mirrorlist.centos.org/?release=7&arch=$basearch&repo=updates&infra=$infra
#baseurl=http://mirror.centos.org/centos/7/updates/$basearch/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentO

[extras]
name=CentOS-7 - Extras

mirrorlist=http://mirrorlist.centos.org/?release=7&arch=$basearch&repo=extras&infra=$infra
#baseurl=http://mirror.centos.org/centos/7/extras/$basearch/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

답변4

저도 똑같은 방법을 시도해 보았 Development Tools으나 CentOS 7방법을 찾지 못했습니다. 나는 결국 대안을 선택했습니다.

기본 개발 도구도 포함되어 있으며 대부분의 요구 사항을 충족할 수 있는 다음을 설치할 수 있습니다.

yum install devtoolset-9
scl enable devtoolset-9 bash

인용하다:https://stackoverflow.com/a/69263518/6907424

관련 정보