Is there a repository containing packages for old versions of gcc, for the latest Ubuntu. I want to install gcc3 alongside gcc 4, for programs that need gcc3 specifically.
Is there a repository containing packages for old versions of gcc, for the latest Ubuntu. I want to install gcc3 alongside gcc 4, for programs that need gcc3 specifically.
You can use debian snapshots. Add the following lines to
/etc/apt/sources.list
Now do
And you're set!
This works for many other old packages, make sure you select the correct timestamp, look for the correct one at snapshots.debian website.
Or alternatively to the Debian snapshots Elazar posted in his answer, you can use the Ubuntu package repositories for the older Ubuntu releases: http://packages.ubuntu.com
Add them to the
/etc/apt/sources.list
as Elazar already described:The Hardy Universe repository is the one that contains gcc-3.4.
You can add gcc-4.4 (or any version between 4.4 and 8) on Ubuntu 16.04 via the (Toolchain test builds PPA)
As an aside, if you need to emulate gcc-4.4 on RH6, build your target program with
For 4.2.3 I had to add
to my
/etc/apt/sources.list
Reference1, Reference2
For GCC 3.4 the correct source url is as below, since the old ones are moved into old-releases.ubuntu.com. Thanks to @Ignitor for the main pointer
edit
for breezy, dapper, edgy, feisty, gutsy, hardy etc
from xenial
gcc-3.3 is available in all current stable releases (In lucid, it is available in lucid-backports)
List of binaries available per release
You can see the above list with the following commands:
Source package list:
Source and binary list:
Here is how to install the old GCC versions on Bionic (18.04).
For GCC 4.4 and 4.6:
For GCC 4.7 and 4.9:
And GCC 4.8 is already available:
On Ubuntu 18.04, I did:
to install gcc-3.3, gcc-3.4, and gcc-4.0
https://launchpad.net/ubuntu/+source/gcc-opt