Old version of gcc for new Ubuntu
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.
apt gcc backport
add a comment |
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.
apt gcc backport
add a comment |
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.
apt gcc backport
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.
apt gcc backport
apt gcc backport
edited Jun 7 '11 at 15:20
Luis Alvarado♦
147k139486655
147k139486655
asked May 3 '11 at 10:47
Elazar LeibovichElazar Leibovich
1,79131722
1,79131722
add a comment |
add a comment |
7 Answers
7
active
oldest
votes
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:
deb http://archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://archive.ubuntu.com/ubuntu/ hardy universe
The Hardy Universe repository is the one that contains gcc-3.4.
add a comment |
You can use debian snapshots. Add the following lines to /etc/apt/sources.list
deb http://snapshot.debian.org/archive/debian/20070730T000000Z/ lenny main
deb-src http://snapshot.debian.org/archive/debian/20070730T000000Z/ lenny main
deb http://snapshot.debian.org/archive/debian-security/20070730T000000Z/ lenny/updates main
deb-src http://snapshot.debian.org/archive/debian-security/20070730T000000Z/ lenny/updates main
Now do
$ apt-get update
$ apt-get install g++-3.4
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.
I get this error after installing and trying to compile a program. Can you help me with this?
– Phani
Nov 8 '14 at 4:11
@Phani not sure. Did you install all g++-3.4's dependencies?
– Elazar Leibovich
Nov 9 '14 at 9:24
How do I do that? I installedbuild-essential
using apt-get.
– Phani
Nov 14 '14 at 23:09
Add the debian snapshot repository. You might want to check out a tutorial how to add repositories to debian.
– Elazar Leibovich
Nov 16 '14 at 9:37
What happened after you followed the steps in the answer?
– Elazar Leibovich
Nov 16 '14 at 9:37
|
show 2 more comments
You can add gcc-4.4 (or any version between 4.4 and 8) on Ubuntu 16.04 via the (Toolchain test builds PPA)
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt install gcc-4.4
As an aside, if you need to emulate gcc-4.4 on RH6, build your target program with
make CC="gcc-4.4 -U_FORTIFY_SOURCE"
add a comment |
For 4.2.3 I had to add
deb http://security.ubuntu.com/ubuntu hardy-security main
to my /etc/apt/sources.list
Reference1, Reference2
add a comment |
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:
rmadison gcc-3.3
Source and binary list:
rmadison gcc-3.3 -S
add a comment |
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
/etc/apt/sources.list
for breezy, dapper, edgy, feisty, gutsy, hardy etc
deb http://old-releases.ubuntu.com/ubuntu/ hardy universe
deb-src http://old-releases.ubuntu.com/ubuntu/ hardy universe
from xenial
apt update
apt install gcc-3.4
add a comment |
On Ubuntu 18.04, I did:
sudo apt install gcc-opt
to install gcc-3.3, gcc-3.4, and gcc-4.0
https://launchpad.net/ubuntu/+source/gcc-opt
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f39628%2fold-version-of-gcc-for-new-ubuntu%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
7 Answers
7
active
oldest
votes
7 Answers
7
active
oldest
votes
active
oldest
votes
active
oldest
votes
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:
deb http://archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://archive.ubuntu.com/ubuntu/ hardy universe
The Hardy Universe repository is the one that contains gcc-3.4.
add a comment |
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:
deb http://archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://archive.ubuntu.com/ubuntu/ hardy universe
The Hardy Universe repository is the one that contains gcc-3.4.
add a comment |
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:
deb http://archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://archive.ubuntu.com/ubuntu/ hardy universe
The Hardy Universe repository is the one that contains gcc-3.4.
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:
deb http://archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://archive.ubuntu.com/ubuntu/ hardy universe
The Hardy Universe repository is the one that contains gcc-3.4.
edited Apr 13 '17 at 12:25
Community♦
1
1
answered Jul 25 '11 at 19:22
IgnitorIgnitor
24626
24626
add a comment |
add a comment |
You can use debian snapshots. Add the following lines to /etc/apt/sources.list
deb http://snapshot.debian.org/archive/debian/20070730T000000Z/ lenny main
deb-src http://snapshot.debian.org/archive/debian/20070730T000000Z/ lenny main
deb http://snapshot.debian.org/archive/debian-security/20070730T000000Z/ lenny/updates main
deb-src http://snapshot.debian.org/archive/debian-security/20070730T000000Z/ lenny/updates main
Now do
$ apt-get update
$ apt-get install g++-3.4
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.
I get this error after installing and trying to compile a program. Can you help me with this?
– Phani
Nov 8 '14 at 4:11
@Phani not sure. Did you install all g++-3.4's dependencies?
– Elazar Leibovich
Nov 9 '14 at 9:24
How do I do that? I installedbuild-essential
using apt-get.
– Phani
Nov 14 '14 at 23:09
Add the debian snapshot repository. You might want to check out a tutorial how to add repositories to debian.
– Elazar Leibovich
Nov 16 '14 at 9:37
What happened after you followed the steps in the answer?
– Elazar Leibovich
Nov 16 '14 at 9:37
|
show 2 more comments
You can use debian snapshots. Add the following lines to /etc/apt/sources.list
deb http://snapshot.debian.org/archive/debian/20070730T000000Z/ lenny main
deb-src http://snapshot.debian.org/archive/debian/20070730T000000Z/ lenny main
deb http://snapshot.debian.org/archive/debian-security/20070730T000000Z/ lenny/updates main
deb-src http://snapshot.debian.org/archive/debian-security/20070730T000000Z/ lenny/updates main
Now do
$ apt-get update
$ apt-get install g++-3.4
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.
I get this error after installing and trying to compile a program. Can you help me with this?
– Phani
Nov 8 '14 at 4:11
@Phani not sure. Did you install all g++-3.4's dependencies?
– Elazar Leibovich
Nov 9 '14 at 9:24
How do I do that? I installedbuild-essential
using apt-get.
– Phani
Nov 14 '14 at 23:09
Add the debian snapshot repository. You might want to check out a tutorial how to add repositories to debian.
– Elazar Leibovich
Nov 16 '14 at 9:37
What happened after you followed the steps in the answer?
– Elazar Leibovich
Nov 16 '14 at 9:37
|
show 2 more comments
You can use debian snapshots. Add the following lines to /etc/apt/sources.list
deb http://snapshot.debian.org/archive/debian/20070730T000000Z/ lenny main
deb-src http://snapshot.debian.org/archive/debian/20070730T000000Z/ lenny main
deb http://snapshot.debian.org/archive/debian-security/20070730T000000Z/ lenny/updates main
deb-src http://snapshot.debian.org/archive/debian-security/20070730T000000Z/ lenny/updates main
Now do
$ apt-get update
$ apt-get install g++-3.4
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.
You can use debian snapshots. Add the following lines to /etc/apt/sources.list
deb http://snapshot.debian.org/archive/debian/20070730T000000Z/ lenny main
deb-src http://snapshot.debian.org/archive/debian/20070730T000000Z/ lenny main
deb http://snapshot.debian.org/archive/debian-security/20070730T000000Z/ lenny/updates main
deb-src http://snapshot.debian.org/archive/debian-security/20070730T000000Z/ lenny/updates main
Now do
$ apt-get update
$ apt-get install g++-3.4
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.
answered May 3 '11 at 10:50
Elazar LeibovichElazar Leibovich
1,79131722
1,79131722
I get this error after installing and trying to compile a program. Can you help me with this?
– Phani
Nov 8 '14 at 4:11
@Phani not sure. Did you install all g++-3.4's dependencies?
– Elazar Leibovich
Nov 9 '14 at 9:24
How do I do that? I installedbuild-essential
using apt-get.
– Phani
Nov 14 '14 at 23:09
Add the debian snapshot repository. You might want to check out a tutorial how to add repositories to debian.
– Elazar Leibovich
Nov 16 '14 at 9:37
What happened after you followed the steps in the answer?
– Elazar Leibovich
Nov 16 '14 at 9:37
|
show 2 more comments
I get this error after installing and trying to compile a program. Can you help me with this?
– Phani
Nov 8 '14 at 4:11
@Phani not sure. Did you install all g++-3.4's dependencies?
– Elazar Leibovich
Nov 9 '14 at 9:24
How do I do that? I installedbuild-essential
using apt-get.
– Phani
Nov 14 '14 at 23:09
Add the debian snapshot repository. You might want to check out a tutorial how to add repositories to debian.
– Elazar Leibovich
Nov 16 '14 at 9:37
What happened after you followed the steps in the answer?
– Elazar Leibovich
Nov 16 '14 at 9:37
I get this error after installing and trying to compile a program. Can you help me with this?
– Phani
Nov 8 '14 at 4:11
I get this error after installing and trying to compile a program. Can you help me with this?
– Phani
Nov 8 '14 at 4:11
@Phani not sure. Did you install all g++-3.4's dependencies?
– Elazar Leibovich
Nov 9 '14 at 9:24
@Phani not sure. Did you install all g++-3.4's dependencies?
– Elazar Leibovich
Nov 9 '14 at 9:24
How do I do that? I installed
build-essential
using apt-get.– Phani
Nov 14 '14 at 23:09
How do I do that? I installed
build-essential
using apt-get.– Phani
Nov 14 '14 at 23:09
Add the debian snapshot repository. You might want to check out a tutorial how to add repositories to debian.
– Elazar Leibovich
Nov 16 '14 at 9:37
Add the debian snapshot repository. You might want to check out a tutorial how to add repositories to debian.
– Elazar Leibovich
Nov 16 '14 at 9:37
What happened after you followed the steps in the answer?
– Elazar Leibovich
Nov 16 '14 at 9:37
What happened after you followed the steps in the answer?
– Elazar Leibovich
Nov 16 '14 at 9:37
|
show 2 more comments
You can add gcc-4.4 (or any version between 4.4 and 8) on Ubuntu 16.04 via the (Toolchain test builds PPA)
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt install gcc-4.4
As an aside, if you need to emulate gcc-4.4 on RH6, build your target program with
make CC="gcc-4.4 -U_FORTIFY_SOURCE"
add a comment |
You can add gcc-4.4 (or any version between 4.4 and 8) on Ubuntu 16.04 via the (Toolchain test builds PPA)
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt install gcc-4.4
As an aside, if you need to emulate gcc-4.4 on RH6, build your target program with
make CC="gcc-4.4 -U_FORTIFY_SOURCE"
add a comment |
You can add gcc-4.4 (or any version between 4.4 and 8) on Ubuntu 16.04 via the (Toolchain test builds PPA)
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt install gcc-4.4
As an aside, if you need to emulate gcc-4.4 on RH6, build your target program with
make CC="gcc-4.4 -U_FORTIFY_SOURCE"
You can add gcc-4.4 (or any version between 4.4 and 8) on Ubuntu 16.04 via the (Toolchain test builds PPA)
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt install gcc-4.4
As an aside, if you need to emulate gcc-4.4 on RH6, build your target program with
make CC="gcc-4.4 -U_FORTIFY_SOURCE"
answered Dec 5 '17 at 14:24
richudrichud
411
411
add a comment |
add a comment |
For 4.2.3 I had to add
deb http://security.ubuntu.com/ubuntu hardy-security main
to my /etc/apt/sources.list
Reference1, Reference2
add a comment |
For 4.2.3 I had to add
deb http://security.ubuntu.com/ubuntu hardy-security main
to my /etc/apt/sources.list
Reference1, Reference2
add a comment |
For 4.2.3 I had to add
deb http://security.ubuntu.com/ubuntu hardy-security main
to my /etc/apt/sources.list
Reference1, Reference2
For 4.2.3 I had to add
deb http://security.ubuntu.com/ubuntu hardy-security main
to my /etc/apt/sources.list
Reference1, Reference2
answered Dec 16 '11 at 13:23
FramesterFramester
2601412
2601412
add a comment |
add a comment |
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:
rmadison gcc-3.3
Source and binary list:
rmadison gcc-3.3 -S
add a comment |
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:
rmadison gcc-3.3
Source and binary list:
rmadison gcc-3.3 -S
add a comment |
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:
rmadison gcc-3.3
Source and binary list:
rmadison gcc-3.3 -S
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:
rmadison gcc-3.3
Source and binary list:
rmadison gcc-3.3 -S
answered Mar 12 '12 at 4:25
micahgmicahg
1,5921015
1,5921015
add a comment |
add a comment |
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
/etc/apt/sources.list
for breezy, dapper, edgy, feisty, gutsy, hardy etc
deb http://old-releases.ubuntu.com/ubuntu/ hardy universe
deb-src http://old-releases.ubuntu.com/ubuntu/ hardy universe
from xenial
apt update
apt install gcc-3.4
add a comment |
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
/etc/apt/sources.list
for breezy, dapper, edgy, feisty, gutsy, hardy etc
deb http://old-releases.ubuntu.com/ubuntu/ hardy universe
deb-src http://old-releases.ubuntu.com/ubuntu/ hardy universe
from xenial
apt update
apt install gcc-3.4
add a comment |
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
/etc/apt/sources.list
for breezy, dapper, edgy, feisty, gutsy, hardy etc
deb http://old-releases.ubuntu.com/ubuntu/ hardy universe
deb-src http://old-releases.ubuntu.com/ubuntu/ hardy universe
from xenial
apt update
apt install gcc-3.4
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
/etc/apt/sources.list
for breezy, dapper, edgy, feisty, gutsy, hardy etc
deb http://old-releases.ubuntu.com/ubuntu/ hardy universe
deb-src http://old-releases.ubuntu.com/ubuntu/ hardy universe
from xenial
apt update
apt install gcc-3.4
answered Sep 29 '16 at 10:02
rajeshkrajeshk
12314
12314
add a comment |
add a comment |
On Ubuntu 18.04, I did:
sudo apt install gcc-opt
to install gcc-3.3, gcc-3.4, and gcc-4.0
https://launchpad.net/ubuntu/+source/gcc-opt
add a comment |
On Ubuntu 18.04, I did:
sudo apt install gcc-opt
to install gcc-3.3, gcc-3.4, and gcc-4.0
https://launchpad.net/ubuntu/+source/gcc-opt
add a comment |
On Ubuntu 18.04, I did:
sudo apt install gcc-opt
to install gcc-3.3, gcc-3.4, and gcc-4.0
https://launchpad.net/ubuntu/+source/gcc-opt
On Ubuntu 18.04, I did:
sudo apt install gcc-opt
to install gcc-3.3, gcc-3.4, and gcc-4.0
https://launchpad.net/ubuntu/+source/gcc-opt
answered Mar 16 at 22:59
hitherehithere
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f39628%2fold-version-of-gcc-for-new-ubuntu%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown