ladder 发表于 2017-12-25 13:07:26

centos 安装gcc gcc-c++时出现错误

输入yum -y install gcc gcc-c++ kernel-devel 出现以下错误


loaded plugins: fastestmirror
setting up install process
loading mirror speeds from cached hostfile
could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&
14: PYCURL ERROR 56 - "Failure when receiving data from the peer"
Error: Cannot find a valid baseurl for repo: base


求大神 版主 解决,谢谢!

人造人 发表于 2017-12-25 13:12:37

输入
ping www.baidu.com
试试

ladder 发表于 2017-12-25 18:52:56

能ping 百度就是安装gcc时出现这个错误
页: [1]
查看完整版本: centos 安装gcc gcc-c++时出现错误