安装了CentOS7之后,及时更新和升级
1.升级环境,安装gcc g++,安装若干相关依赖包
yum -y update
yum install gcc gcc-c++
sudo yum -y install bzip2 wget gcc gcc-c++ gmp-devel mpfr-devel libmpc-devel make
yum install zlib
yum install zlib-devel
https://ftp.gnu.org/gnu/gcc/gcc-7.5.0/gcc-7.5.0.tar.gz