How do I install an older version of gcc Ubuntu?

How do I install an older version of gcc Ubuntu?

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 use old gcc?

2 Answers

  1. Update the available package information and install GCC 6.3. sudo apt update sudo apt install gcc-6.
  2. Add GCC 6 as an alternative for GCC.
  3. Once you’re done with “making”, you can remove the installed GCC 6.3 and the repository information of Zesty.
  4. Fix the symlink for /usr/bin/gcc .

Can you install an older version of Apt on Ubuntu?

Want to install an older version of a package through apt on Ubuntu? We’ll show you how in the steps below. This should also work on other Debian-based Linux distributions that use the apt package manager. 1. First, let’s see what versions are available to install. We’ll use the mysql-server package as an example here.

What’s the version of GNU Make in Ubuntu trusty?

It looks like make 3.81 was used in Ubuntu trusty: make 3.81 . It also looks like Ubuntu trusty was using gcc 4.8.2. So, one thing you can try is to install gcc 4.x and use that to compile. In Ubuntu 18.04, install the package gcc-4.8 . Then type ./configure –help .

Is there an older version of GCC for Ubuntu?

I have gcc 4.8 installed but I also need to install gcc 3.4.3. I have followed these steps: Downloaded gcc 3.4.3 from gcc.parentingamerica.com/releases. Extracted the tar. Please can anyone suggest what’s wrong and also how to ask gcc to use the older version once installed?

Which is the latest version of make in Ubuntu?

So, for example, you might have code from 5 years ago that would compile fine 5 years ago, but with the latest version of gcc, you may get all these warnings and errors. It looks like make 3.81 was used in Ubuntu trusty: make 3.81 .