运维 服务器 linux gcc安装报错【Loading mirror speeds from cached hostfile \n There are no enabled repos】解决办法 - repo http://mirrors
在linux安装gcc过程中报错
已加载插件:aliases, fastestmirror, protectbase Loading mirror speeds from cached hostfile There are no enabled repos. Run “yum repolist all” to see the repos you have. To enable Red Hat Subscription Management repositories: subscription-manager repos --enable To enable custom repositories: yum-config-manager --enable
如图↓
解决办法
依次输入
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repowget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repoyum clean allyum makecache 最后再安装一次yum install -y gcc
OK!解决 拼多多帮助力入口
精彩内容,运维