Skip to content

Instantly share code, notes, and snippets.

@wisdomfusion
Last active March 29, 2021 03:18
Show Gist options
  • Save wisdomfusion/a60285c8f7cd9faf06ef8c9244133219 to your computer and use it in GitHub Desktop.
Save wisdomfusion/a60285c8f7cd9faf06ef8c9244133219 to your computer and use it in GitHub Desktop.
Install gcc-4.9.3 on CentOS 6
yum install libmpc-devel mpfr-devel gmp-devel
cd /usr/src/
curl ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.9.3/gcc-4.9.3.tar.bz2 -O
tar xvfj gcc-4.9.3.tar.bz2
cd gcc-4.9.3
./configure --disable-multilib --enable-languages=c,c++
make -j `grep processor /proc/cpuinfo | wc -l`
make install
@Tapan
Copy link

Tapan commented Aug 3, 2018

Thanks for the help 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment