Sunday, August 16, 2015

GCC 4.8 on CentOS

I finally found a simple way to install gcc/g++ 4.8 (required to use c++11 syntax) on my CentOS 6 distribution!

Here is the link:

http://braaten-family.org/ed/blog/2014-05-28-devtools-for-centos/

NOTE:

I suggest you to update your .bashrc file with the following line

source /opt/rh/devtoolset-2/enable


Otherwise you cannot run the newest version of the gcc/g++!


NOTE
Adding only this line to .bashrc: 

scl enable devtoolset-2 bash 

causes a fork-bomb!!!!


REFERENCES:
http://unix.stackexchange.com
http://braaten-family.org/ed/blog/2014-05-28-devtools-for-centos/ 

No comments:

Post a Comment

Your comment will be visible after approval.