Skip to content

Instantly share code, notes, and snippets.

@anamorph
Created November 18, 2017 12:28
Show Gist options
  • Save anamorph/b861de7f06835eaee54177b3abd830c0 to your computer and use it in GitHub Desktop.
Save anamorph/b861de7f06835eaee54177b3abd830c0 to your computer and use it in GitHub Desktop.
Build GCC 4.9.2 for C/C++ in CentOS 7
sudo yum install libmpc-devel mpfr-devel gmp-devel
sudo yum groupinstall "Development tools"
cd /tmp
curl ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.9.2/gcc-4.9.2.tar.bz2 -O
tar xvfj gcc-4.9.2.tar.bz2
cd gcc-4.9.2
./configure --disable-multilib --enable-languages=c,c++
make -j 4
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment