I tried yum install gcc-c++
, however, the repos have an old version (4.1) which causes lots of problems and stops me from building a library. I would like to update it to latest. How can I do that?
Centos – How to install the latest g++ version on CentOS
centosgccinstallationyum
Related Topic
- Centos – Yum doesn’t install latest version of Git on Centos6
- How to Upgrade to the Latest PHP Version in CentOS Using Yum
- Install latest nodejs (4.2.1 or 5.0) on centos 7 using yum
- Install specific version of a yum pacakge or default to latest via environment variable
- Nano – How to Get Latest Version of Nano (4.5) on CentOS 7
Best Answer
You're referring to CentOS 5.x, based on the version number in your post. You can upgrade to
gcc44-c++
, which is a slightly-newer version 4.4. This is available in the base repo using yum.Try
yum install gcc44-c++
.Once installed, the executable you'd use will be
/usr/bin/g++44
instead of/usr/bin/g++
.