错误:为repo ‘appstream’ 下载元数据失败 : Cannot prepare internal mirrorlist: No URLs in mirrorlist
解决方法:
到/etc/yum.repos.d下,执行以下命令:
sudo sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-*
sudo sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*yum -y install gcc automake autoconf libtool make
报错:bash make: 未找到命令
解决方法:
执行:
yum -y install gcc automake autoconf libtool make