Last active
January 26, 2018 10:35
-
-
Save shangdev/62485d6521e4b7749d244fd8d285aaef to your computer and use it in GitHub Desktop.
Upgrade gcc to v7.3.0 in centos6.8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 下载最新版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