首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在没有互联网的RH 7上安装MinGW?

如何在没有互联网的RH 7上安装MinGW?
EN

Unix & Linux用户
提问于 2020-03-09 16:39:03
回答 1查看 979关注 0票数 0

我正试图在Linux 7计算机上安装MinGW。不幸的是,由于安全原因,我在那台机器上没有互联网,尽管我可以复制文件。

这个问题告诉我,在EPEL 7. MinGw中应该有我可以在哪里找到并安装centos-7的混合W64软件包?

因此,我按照这里的说明安装了EPEL 7:https://fedoraproject.org/wiki/EPEL,但是我必须手动下载epel发行版-最新的-7.noarch.rpm包,然后运行yum install <my local epel 7>

然而,我被困住了。我尝试使用sudo yum install mingw64-gcc,并得到一条长错误消息,结尾为:

代码语言:javascript
复制
 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_64sudo yum install mingw64-gcc --disablerepo=epel/x86_64,正如错误消息所暗示的那样,我两次都得到了相同的消息。

在这一点上,我怀疑问题是百胜找不到EPEL软件包,因为我没有互联网,而且我失败了。

我也尝试了sudo yum --enablerepo=extras install epel-release,因为这是在一些帖子中提出的,但也失败了。我不知道这是什么,但我怀疑只是安装EPEL 7,我已经做了。

问题:

  1. 像MinGw这样的EPEL包是否包含在我下载的epel发行版-最新7.noarch.rpm包中?或者,sudo yum install mingw64-gcc命令会转到某个URL并尝试从那里混合起来吗?
  2. 如果sudo yum install mingw64-gcc试图从互联网上的其他地方获取MinGw信息,有什么方法可以下载并复制EPEL 7的方式吗?
  3. 最后,看来我安装minGw的尝试失败了,因为EPEL 7无法获得其他软件包的信息,我认为这些包不应该与MinGw (x86)有关。不过,这只是猜测。如果是这样的话,我能不能告诉百胜停止寻找其他的回购,除了明??

最后,我真的只是尝试安装在我的RH 7没有互联网的MinGw,所以如果有人有其他方式这样做,我会很高兴的。

EN

回答 1

Unix & Linux用户

发布于 2020-03-09 16:51:04

  1. 您安装的文件告诉YUM有关EPEL存储库的信息,但它没有提供其中包含的任何数据;包是从Internet上的各种镜像中检索的。你可以看这里的包裹
  2. 是的,你可以手动下载软件包。然而,据我所知,MinGW-w64软件包不再从EPEL 7.
  3. 一旦您有RPM要安装,您应该使用yum install与RPM的名称,而不是一般的软件包名称。您还可以直接使用rpm -i;这根本不需要查看配置的存储库。
票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/571999

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档