Last active
December 12, 2015 04:34
-
-
Save fripSide/f04d216f3843498a71e9 to your computer and use it in GitHub Desktop.
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
sudo apt-get install -y libgmp-dev libmpfr-dev libmpc-dev zlib1g-dev | |
wget ftp://ftp.gnu.org/gnu/gcc/gcc-5.3.0/gcc-5.3.0.tar.bz2 | |
tar vf gcc-5.3.0.tar.bz2 | |
mkdir outdir | |
cd outdir | |
../gcc-5.3.0/configure --disable-checking --program-suffix=-5.3 --enable-languages=c,c++,go,objc --disable-multilib --with-system-zlib prefix=/usr/local/gcc-5.3 | |
make && make install | |
# choose gcc-5.3 | |
update-alternatives --install /usr/bin/gcc gcc /usr/local/gcc-5.3/bin/gcc-5.3 30 | |
update-alternatives --set gcc /usr/local/gcc-5.3/bin/gcc-5.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If compiled failed, you can modify the "--enable-languages=c,c++,go,objc" to "--enable-languages=c,c++" and only support c and c++.