Skip to content

Instantly share code, notes, and snippets.

@nikkadim
Created February 22, 2023 14:13
Show Gist options
  • Save nikkadim/bd209b645192533c273b0720fa36e182 to your computer and use it in GitHub Desktop.
Save nikkadim/bd209b645192533c273b0720fa36e182 to your computer and use it in GitHub Desktop.
Build GCC 4.9.2 for C/C++ on CentOS 7
sudo yum install libmpc-devel mpfr-devel gmp-devel
cd ~/tmp
curl https://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-10.4.0/gcc-10.4.0.tar.gz -O
tar zxvf gcc-10.4.0.tar.gz
cd gcc-10.4.0
./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