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.

Currently g++ 4.4.3 is installed on my Ubuntu, but I want to update it to 4.6.3 version. When I search "g++" in synaptic package manager there is nothing about newer versions.

How can I update my g++ then?

share|improve this question
    
The repository may not contain the newest version. Either try backports or install from source. –  harisibrahimkv May 4 '12 at 10:49
    
I have ubuntu 12.04 and I have installed the 4.6.3 version. Click on the 'Reload' button on the top left of synaptic and try again. –  hakermania May 4 '12 at 10:49
    
@harisibrahimkv: How to install from source? –  a-z May 4 '12 at 10:57
    
@hakermania: Reload didn't change version. –  a-z May 4 '12 at 10:58
1  
The best thing to do would be to install the g++ to a non-standard location (Do this by running ./configure --prefix=<path_to_install_to>) and then append that path to the standard PATH variable. Refer to this sosaysharis.wordpress.com/2011/11/28/… . After you are done installing, you can remove your older g++ using "sudo apt-get remove g++". –  harisibrahimkv May 4 '12 at 12:07

1 Answer 1

For latest version of gcc/g++ you can add this ppa-ppa:ubuntu-toolchain-r/test via Synaptic Package Manager and then press reload button.You should now see the latest version of g++ in the list of packages.

share|improve this answer

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.