Last active
September 14, 2016 17:56
-
-
Save lrascao/97f6dbf38083b7eb03be820c0017362d to your computer and use it in GitHub Desktop.
Download and install gcc
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 yum install libmpc-devel mpfr-devel gmp-devel zlib-devel* | |
mkdir -p gcc/src gcc/tarballs gcc/releases | |
cd gcc/tarballs | |
curl ftp://ftp.gnu.org/pub/gnu/gcc/gcc-5.4.0/gcc-5.4.0.tar.bz2 -O | |
# verify the signatures | |
cd .. | |
cp tarballs/gcc-5.4.0.tar.bz2 src | |
cd src | |
tar xvfj gcc-5.4.0.tar.bz2 | |
cd gcc-5.4.0 | |
./configure --prefix=/home/ec2-user/gcc/releases/5.4.0 --with-local-prefix=/home/ec2-user/gcc/releases/5.4.0 --with-system-zlib --disable-multilib --enable-languages=c,c++ | |
make | |
make DESTDIR=/home/ec2-user/gcc/releases/5.4.0 install | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment