How to install gcc 4.6.3 on 12.10?

17,552

I removed gcc (4.7) and install gcc-4.6. I actually don't think that the first step is necessary here, you might just be able to have gcc 4.7 and 4.6 installed alongside.

 sudo apt-get remove gcc
 sudo apt-get install gcc-4.6 g++-4.6
 sudo ln -s /usr/bin/gcc-4.6 /usr/bin/gcc
 sudo ln -s /usr/bin/g++-4.6 /usr/bin/g++
Share:
17,552
Peachy
Author by

Peachy

Updated on September 18, 2022

Comments

  • Peachy
    Peachy over 1 year

    I want to install a previous version of gcc to make Intel compilers work correctly.

    Can I use apt-get to install? If so, which repository should I use?

    Any help is appreciated.

    • Admin
      Admin about 11 years
      using " sudo apt-get remove gcc" just broke up my bumblebee/optimus installation, days of work. use it with caution.