Contents
How do I get an older version of GCC?
Check your current version by running gcc -v . Next, You want to install a previous version. Then after doing sudo apt-get update the new repositories will be available. Next, install the required compiler.
How do I downgrade GCC version?
2 Answers
- Uninstall gcc5.4. sudo apt-get remove gcc g++ Check gcc again: gcc –version.
- Install gcc 4.9/g++ 4.9. sudo apt-get install gcc-4.9 g++-4.9. Checking Version: g++-4.9 –version.
- Link to gcc g++ ln -s /usr/bin/g++-4.9 /usr/bin/g++ ln -s /usr/bin/gcc-4.9 /usr/bin/gcc.
- Checking Version: g++ –v gcc –v.
Can you install more than one version of GCC?
I need to install an older version (6.3) of GCC than the one in my computer, i’m using Ubuntu 17.10 an my actual GCC verion is “gcc version 7.2.0 (Ubuntu 7.2.0-8ubuntu3.2)”. I’ve heard that is possible to install more than one GCC version in the same computer, would you suggest it? If so how would i be able to choose when to use which?
How to install older version gcc / g + + in Ubuntu 16?
When we compile some project, it needs older version gcc /g++ version. So how to insall older ones in ubuntu 16? You may need to create a symbolink for gcc-4.4 as follows
How to install GCC 6.3 from its repository?
To install GCC 6.3 from its repository: Add the repository of Zesty and disable the Universe repository of Bionic since it contains 6.4 as well as 6.5 which might get installed while trying to install 6.3. Update the available package information and install GCC 6.3. Add GCC 6 as an alternative for GCC. Check the GCC version using gcc -v.
Is there a way to install GCC 6.3 from zesty?
But since Zesty reached end of life way back in January 2018, therefore, its archives have been moved to Old Releases. To install GCC 6.3 from its repository: Add the repository of Zesty and disable the Universe repository of Bionic since it contains 6.4 as well as 6.5 which might get installed while trying to install 6.3.