三木先生 发表于 2021-7-9 10:18
时隔几天后,考完试了,我又回来搭建了,之前就一直卡在了安装gcc上,也看了更早之前的评论,也去操作了, ...
还是没用,会提示cant find。我也找了很多解决方法,都不奏效,后面还有很多人说都卡在了这一步,哎
这是发生什么事了"C:\Users\nu\Desktop\搜狗截图20240805080330.png""C:\Users\nu\Desktop\搜狗截图20240805082543.png"
gcc test.c &&./a out
- bash : gcc: command not found
输入 gcc test.c && ./a.out 命令,程序被成功地执行(在终端上打印一行字符串:I love FishC):
打印不出来 怎么办?求助大神呀这关卡气了 过不了呀
请问yum输入安装之后出现
Cannot find a valid baseurl for repo: base/7/x86_64是为什么
{:10_266:}{:10_266:}
本帖最后由 tianyih 于 2024-8-13 12:52 编辑
输入 yum -y install gcc gcc-c++ kernel-devel 出现错误,什么原因?
cannot find a valid baseurl for repo:base/7/x86_64
https://i.postimg.cc/hthnjmHV/20240813074913.jpg
本帖最后由 白小飞0815 于 2024-8-17 16:15 编辑
为什么我输入这个命令yum -y install gcc gcc-c++ kernel-devel 会不成功,弹出什么:
One of the configured repositories failed (lnknown)and yum doesn't have enough cached data to continue. At this point the onlysafe 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.
Reconf igure the baseurl/etc, for the repository, to point to a workingupstream, This is most often useful if you are using a newerdistribution release than is supported by the repository (and thepackages for the previous distribution release still work).
3.Run the command with the repository temporarily disabledyum --disablerepo=<repoid>
Disable the repository permanently, so yum won't use it by default. Yumwill then just igmore the repository util you permaently enable itaga in or use --enablerepo for temporary usage :
yum-config-manager --disable <repoid>
N1
subscription-manager repos--disable=<repoid>
Conf igure the failing repository to be skipped, if it is unavailable.Note that yum will try to contact the repo, when it runs most commandsso will have to try and fail each time (and thus. yum will be be muchslower). If it is a very temporary problem though, this is often a nicecompromise :
yum-conf ig-manager --save--setopt=<repoid>.skip if unavailable=true
不重名就行 发表于 2023-2-18 11:29
请问为什么我输入这个后yum -y install gcc gcc-c++ kernel-devel
后面显示的是not found
我也遇到了这个情况,你解决了吗?
各位老师,请问输入 yum -y install gcc gcc-c++ kernel-devel 命令,安装GCC失败,怎么解决?
输入 yum -y install gcc gcc-c++ kernel-devel 命令 没办法安装,显示这个file:///E:/Program%20Files%20(x86)/Documents/WeChat%20Files/wxid_bd0wu6qukyqc22/FileStorage/Temp/1d01ad14584dd45a3b315934704c99a.png
healthcilfff 发表于 2023-11-20 19:35
这个怎么办啊,哪位能教下我啊,拜托了
你的解决了吗?
hhjlovelc 发表于 2024-9-27 14:43
你的解决了吗?
我pingl 一下,这个网站不行了 没办法装gcc
为啥我安装GCC输入完后输出与你们不同
鱼鱼,安装不成功,显示这个玩意怎么办啊
友友们,关于gcc目前安装失败原因是国内网络不能访问外网。所以需要将mirrorlist.centos.org替换为国内可以访问的镜像源。
可以按照以下步骤输入代码
1.在登入root后输入以下代码就可以了
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
2.清楚yum缓存
yum clean all
3.然后重新生成缓存
yum makecache
(然后接下来的跟着小甲鱼的步骤来就行了,代码输入的时候请注意空格,我也是在CSDN上查到的{:10_291:})
timeroom 发表于 2024-10-11 18:18
鱼鱼,安装不成功,显示这个玩意怎么办啊
友友可以看看我后面发的,我也是今天才重新弄好这些。{:10_247:}
Kianamary 发表于 2024-10-15 17:32
友友可以看看我后面发的,我也是今天才重新弄好这些。
谢谢谢谢,解决了
Kianamary 发表于 2024-10-15 17:30
友友们,关于gcc目前安装失败原因是国内网络不能访问外网。所以需要将mirrorlist.centos.org替换为国内可以 ...
鱼鱼,怎么清楚yum缓存
Kianamary 发表于 2024-10-15 17:30
友友们,关于gcc目前安装失败原因是国内网络不能访问外网。所以需要将mirrorlist.centos.org替换为国内可以 ...
谢谢你居然真成了{:5_92:}
Kianamary 发表于 2024-10-15 17:30
友友们,关于gcc目前安装失败原因是国内网络不能访问外网。所以需要将mirrorlist.centos.org替换为国内可以 ...
牛啊牛啊,我折腾半天,我在论坛里搜帖子,全是Fishc的自动回帖。哈哈哈哈。还是你这个方法管用
这一步老是出现这个问题,怎么办