Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 have some development work, it seems that GCC 4.8 will not work well with other development tools, so I may have to stick with GCC 4.7, but I am not sure if this is allowed in Ubuntu 13.10(64bit). If yes, can anyone tell me how to install and configure gcc 4.7 here?

share|improve this question

Yes, the two versions will happily coexist. You can invoke each individually by specifically invoking it though only one version will have CC aliased to it.

Install each separately with:

sudo apt-get install gcc-4.7

sudo apt-get install gcc-4.8

When you are ready to compile with a specific version invoke it explicitely:

gcc-4.7 source.c -o executable


gcc-4.8 source.c -o executable
share|improve this answer

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.