Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a fresh install of Ubuntu 11.10 and I tried to install g++. Unfortunately I did not find it in the Software Center. In the sources list the boxes for universe and main are checked. Any suggestions or hints?

Edit: As said below: I think the problem is that the Software Center needs some time to refresh the software sources. I did nothing and after appr. one hour every was available.

share|improve this question
add comment

2 Answers

I suggest to install the package build-essential Install build-essential that will bring in the compilers gcc, g++ and other tools for development, like gdb and make.

share|improve this answer
    
It works now. I do not know why, but suddenly the search result showed the correct packages. –  headmyshoulder Nov 19 '11 at 20:45
    
The current g++ is 4.6.1 –  user24668 Nov 19 '11 at 20:47
1  
I think the problem is that the Software Center needs some time to refresh the software sources. I did nothing and after appr. one hour every was available. –  headmyshoulder Nov 21 '11 at 22:08
    
You can force the sources to refresh in Update Manager (press Check) - the results should show in Software Center as well, they use the same packages. Be worth a try next time :) –  Caesium Nov 26 '11 at 10:59
add comment

You could try this:

sudo apt-get install g++

this will help you install it via the Software Center:

Install via the software center

share|improve this answer
add comment

Your Answer

 
discard

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.