先把YUM源切換成國內的鏡像源
先備份一下原來的源鏡像文件緩存
# cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
下載新的CentOS-Base.repobash
#wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
若是沒有安裝wget的話可使用#yum install wget安裝完成以後,在執行CentOS-Base.repo的安裝
對/etc/yum.repos.d/CentOS-Media.repo源文件配置文件,改成不生效spa
enable=0
YUM緩存生成code
#yum clean all #yum makecache #yum update
yum groupinstall "Development Libraries" yum groupinstall "Development Tools" yum install ncurses-devel zlib-devel texinfo gtk+-devel gtk2-devel qt-devel tcl-devel tk-devel libX11-devel kernel-headers kernel-devel