I can see the GCC release on Centos 7 is 4.8.5. I have installed Anaconda3 with Python 3 as Centos only ship Python2 which my company does not use. I can see that Anaconda3 GCC release is 7.2.0. While writing this, the most recent release of GCC is 8.1.0. I was how to proceed to install the fresh GCC on Centos 7.
I usual routine is:
Code: Select all
cd <to GCC folder>
yum install gmp-devel mpfr-devel libmpc-devel
configure --enable-languages=c,c++ --disable-multilib
make -j$(nproc) && make install
Code: Select all
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
Thanks