인터넷 없이 RH 7에 MinGW를 설치하는 방법은 무엇입니까?

인터넷 없이 RH 7에 MinGW를 설치하는 방법은 무엇입니까?

Linux Red Hat 7 시스템에 MinGW를 설치하려고 합니다. 불행히도 파일을 복사할 수는 있지만 보안상의 이유로 해당 컴퓨터에는 인터넷이 없습니다.

이 질문은 EPEL 7에 MinGw가 있어야 한다는 것을 알려줍니다. centos-7용 mingw-w64 패키지는 어디에서 찾아서 설치할 수 있나요?

그래서 여기 지침에 따라 EPEL 7을 설치할 수 있었습니다.https://fedoraproject.org/wiki/EPEL 그러나 epel-release-latest-7.noarch.rpm 패키지를 수동으로 다운로드한 다음 실행해야 했습니다.yum install <my local epel 7>

그러나 나는 막히게됩니다. 을(를) 시도했는데 sudo yum install mingw64-gcc다음으로 끝나는 긴 오류 메시지가 표시됩니다.

 One of the configured repositories failed (Unknown),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=<repoid> ...

     4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

            yum-config-manager --disable <repoid>
        or
            subscription-manager repos --disable=<repoid>

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true

Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again

그래서 오류 메시지에서 알 수 있듯이 sudo yum install mingw64-gcc --disablerepo=x86_64및 를 모두 시도했는데 두 번 모두 동일한 메시지가 표시됩니다.sudo yum install mingw64-gcc --disablerepo=epel/x86_64

이 시점에서 나는 인터넷이 없기 때문에 yum이 EPEL 패키지를 찾을 수 없다는 것이 문제라고 생각하며, 그로 인해 실패하고 있습니다.

sudo yum --enablerepo=extras install epel-release일부 게시물에서 제안한 이후에도 시도했지만 실패했습니다. 이것이 무엇인지는 모르겠지만 이미 설치한 EPEL 7만 설치하는 것 같습니다.

질문:

  1. 다운로드한 epel-release-latest-7.noarch.rpm 패키지에 MinGw와 같은 EPEL 패키지가 포함되어 있습니까? 아니면 sudo yum install mingw64-gcc명령이 일부 URL로 이동하여 거기에서 mingw를 가져오려고 합니까?
  2. 인터넷의 다른 위치에서 MinGw 정보를 얻으려는 경우 sudo yum install mingw64-gccEPEL 7에서 했던 방식으로 다운로드하여 복사할 수 있는 방법이 있습니까?
  3. 마지막으로, EPEL 7이 MinGw(x86)와 관련되어서는 안 된다고 생각되는 다른 패키지에 대한 정보를 얻을 수 없기 때문에 minGw를 설치하려는 시도가 실패한 것 같습니다. 하지만 이것은 추측입니다. 그렇다면 yum에게 mingw 이외의 다른 저장소 검색을 중단하라고 말할 수 있나요?

마지막으로 저는 인터넷 없이 RH 7에 MinGw를 설치하려고 합니다. 다른 방법이 있는 사람이 있다면 기꺼이 그렇게 하겠습니다.

답변1

  1. 설치한 파일은 YUM에게 EPEL 저장소에 대해 알려주지만 그 안에 포함된 데이터는 제공하지 않습니다. 패키지는 인터넷의 다양한 미러에서 검색됩니다. 당신은 할 수 있습니다여기에서 패키지를 확인하세요.

  2. 예, 패키지를 수동으로 다운로드할 수 있습니다. 그러나 내가 아는 한 MinGW-w64 패키지는 더 이상 EPEL 7에서 사용할 수 없습니다.

  3. 설치할 RPM이 있으면 yum install일반 패키지 이름이 아닌 RPM 이름을 사용해야 합니다. rpm -i직접 사용할 수도 있습니다 . 구성된 저장소를 전혀 보지 않습니다.

관련 정보