Skip to content

Instantly share code, notes, and snippets.

@v0112358
Created August 31, 2018 12:04
Show Gist options
  • Save v0112358/24bf26795025af07128a69337443d8e7 to your computer and use it in GitHub Desktop.
Save v0112358/24bf26795025af07128a69337443d8e7 to your computer and use it in GitHub Desktop.
Install Gcc 5.4 on CentOS 7.x
wget https://ftp.gnu.org/gnu/gcc/gcc-5.5.0/gcc-5.5.0.tar.bz2
tar xjvf gcc-5.4.0.tar.bz2
yum install -y gmp-devel mpfr-devel libmpc-devel
mkdir gcc-5.5.0-build
cd gcc-5.5.0-build
../gcc-5.5.0/configure --enable-languages=c,c++ --disable-multilib
make -j$(nproc) && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment