Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 3 down vote accepted

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++.

share|improve this answer
this is great, so much easier than I expected to be... – Valentin Radu Sep 20 '11 at 12:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.