Fedora 31에 gcc 8.2.1을 설치하는 방법

Fedora 31에 gcc 8.2.1을 설치하는 방법

Fedora 31에 CUDA를 설치하려고 했지만 Fedora 31과 함께 제공되는 버전은 9.2인 반면 CUDA는 공식적으로 Fedora 29(gcc 8.2)를 지원하기 때문에 마지막 단계에서 멈췄습니다. 그런 다음 cuda 지원으로 pytorch를 설치했는데 별로 놀랍지도 않게 CUDA 지원은 다음과 같습니다. 존재하지 않음

>>> import torch
>>> device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
>>> device
device(type='cpu')

그런 다음 gcc, g++ 및 gfortran을 검색하려고했습니다.패키지, 그러나 다음과 같은 종속성 지옥에 갇혔습니다.

sudo dnf install gcc-8.2.1-2.fc29.x86_64.rpm gcc-gfortran-8.2.1-2.fc29.x86_64.rpm gcc-c++-8.2.1-2.fc29.x86_64.rpm -y

Error: 
 Problem 1: conflicting requests
  - nothing provides cpp = 8.2.1-2.fc29 needed by gcc-8.2.1-2.fc29.x86_64
  - nothing provides libgomp = 8.2.1-2.fc29 needed by gcc-8.2.1-2.fc29.x86_64
 Problem 2: conflicting requests
  - nothing provides libgfortran = 8.2.1-2.fc29 needed by gcc-gfortran-8.2.1-2.fc29.x86_64
  - nothing provides libquadmath = 8.2.1-2.fc29 needed by gcc-gfortran-8.2.1-2.fc29.x86_64
  - nothing provides libquadmath-devel = 8.2.1-2.fc29 needed by gcc-gfortran-8.2.1-2.fc29.x86_64
 Problem 3: conflicting requests
  - nothing provides libstdc++ = 8.2.1-2.fc29 needed by gcc-c++-8.2.1-2.fc29.x86_64
  - nothing provides libstdc++-devel = 8.2.1-2.fc29 needed by gcc-c++-8.2.1-2.fc29.x86_64

다음에서 유용한 링크를 많이 찾았습니다.이 게시물하지만 불행하게도 마지막 버전은 gcc 7.3입니다. 마지막 옵션은 소스에서 빌드하는 것이지만 그 외에 다른 옵션이 있습니까? 내 컴퓨터가 적절한 시간 내에 편집을 처리할 수 있을지 확신할 수 없습니다.

관련 정보