Contents
How do I install 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.
How do I install the latest version of gcc Ubuntu?
Installing GCC on Ubuntu
- Start by updating the packages list: sudo apt update.
- Install the build-essential package by typing: sudo apt install build-essential.
- To validate that the GCC compiler is successfully installed, use the gcc –version command which prints the GCC version: gcc –version.
Is gcc outdated?
Caveats. Support for a number of older systems and recently unmaintained or untested target ports of GCC has been declared obsolete in GCC 4.7. Unless there is activity to revive them, the next release of GCC will have their sources permanently removed.
Can you have multiple versions of GCC?
With GCC compilers installed, we can now proceed to install multiple versions of G++ compilers. Alternatively, you can install both GCC and G++ compilers with a single command, as shown below.
How do I find my GCC version?
How to Check gcc Version on Ubuntu
- Question : How to check gcc version on my Ubuntu ?
- Answer : gcc – GNU project C and C++ compiler. There are a few options to obtain GCC version in Ubuntu.
- Option 1. Issue command “gcc –version” Example :
- Option 2. Issue command “gcc -v”
- Option 3. Issue command “aptitude show gcc”