我正试图在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,并得到一条长错误消息,结尾为:
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,正如错误消息所暗示的那样,我两次都得到了相同的消息。
在这一点上,我怀疑问题是百胜找不到EPEL软件包,因为我没有互联网,而且我失败了。
我也尝试了sudo yum --enablerepo=extras install epel-release,因为这是在一些帖子中提出的,但也失败了。我不知道这是什么,但我怀疑只是安装EPEL 7,我已经做了。
问题:
sudo yum install mingw64-gcc命令会转到某个URL并尝试从那里混合起来吗?sudo yum install mingw64-gcc试图从互联网上的其他地方获取MinGw信息,有什么方法可以下载并复制EPEL 7的方式吗?最后,我真的只是尝试安装在我的RH 7没有互联网的MinGw,所以如果有人有其他方式这样做,我会很高兴的。
发布于 2020-03-09 16:51:04
yum install与RPM的名称,而不是一般的软件包名称。您还可以直接使用rpm -i;这根本不需要查看配置的存储库。https://unix.stackexchange.com/questions/571999
复制相似问题