Skip to content

Instantly share code, notes, and snippets.

@shangdev
Last active January 26, 2018 10:35
Show Gist options
  • Save shangdev/62485d6521e4b7749d244fd8d285aaef to your computer and use it in GitHub Desktop.
Save shangdev/62485d6521e4b7749d244fd8d285aaef to your computer and use it in GitHub Desktop.
Upgrade gcc to v7.3.0 in centos6.8
## 下载最新版gcc
wget http://ftp.gnu.org/gnu/gcc/gcc-7.3.0/gcc-7.3.0.tar.bz2
tar jxvf gcc-7.3.0.tar.bz2
## 创建存放编译的文件
mkdir gcc-build-7.3.0
cd gcc-build-7.3.0
## 编译安装gcc
../configure --enable-checking=release --enable-languages=c,c++ --disable-multilib
make
make install
## 查看gcc版本
gcc -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment