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've tried the following:

sudo apt-get remove gcc
sudo apt-get install gcc-4.4

But this does not work, running gcc --version gives a 'No such file or directory' error.

share|improve this question
    
Note: I have found some promising looking instructions, I'll let you know how it goes. –  fredley Nov 11 '11 at 14:08
    
This method does not work. –  fredley Nov 11 '11 at 14:30

2 Answers 2

up vote 3 down vote accepted

You can install both gcc-4.4 and gcc-4.6 if you wish. The binaries for them would be: /usr/bin/gcc-4.4 and /usr/bin/gcc-4.6.

Besides this, if you want /usr/bin/gcc to point to /usr/bin/gcc-4.4, then you have to update the link yourself or use update-alternatives as explained in this question.

share|improve this answer
    
The link is broken :( Can you please update it –  mac Mar 1 '13 at 3:15
    
The link is broken. Check this - stackoverflow.com/questions/7832892/… –  mac Mar 1 '13 at 3:42
    
@mac It's a shame the old link doesn't work anymore. I've updated the response to point to link you suggested since it provides a good explanation of what has to be done indeed. Thanks. –  jcollado Mar 1 '13 at 8:48

The answer to your question is No

If you wish to use 4.4 for compiling tasks then install it, it's in the repos

The easiest way is to install synaptic, search gcc, g++, cpp.

You can also use the software centre, search gcc-, g++=, cpp= (note that = is not a typo)

share|improve this answer
    
How do I get it from the repos? –  fredley Nov 11 '11 at 14:30
    
easiest is to install synaptic, search gcc, g++, cpp. I guess one could use software center though it's still a pain to use. In S-C I'd search gcc-, g++=, cpp= (note that = is not a typo –  doug Nov 11 '11 at 15:15

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.