Install gcc 4.9 at ubuntu 18.04












5















Is there any way to install gcc 4.9 at ubuntu 18.04? I tried



sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa
sudo apt-get update
sudo apt-get install gcc-4.9 g++-4.9


but I get:



Package g++-4.9 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source


I need this version for running some simulations with sniper.
Is there anyway to do it or I have to make a VM with ubuntu 16.04?










share|improve this question




















  • 1





    Please edit your question to explain why you need gcc version 4.9

    – Knud Larsen
    May 14 '18 at 14:23











  • @KnudLarsen That is very irrelevant.

    – Jon Deaton
    Jul 5 '18 at 23:56


















5















Is there any way to install gcc 4.9 at ubuntu 18.04? I tried



sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa
sudo apt-get update
sudo apt-get install gcc-4.9 g++-4.9


but I get:



Package g++-4.9 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source


I need this version for running some simulations with sniper.
Is there anyway to do it or I have to make a VM with ubuntu 16.04?










share|improve this question




















  • 1





    Please edit your question to explain why you need gcc version 4.9

    – Knud Larsen
    May 14 '18 at 14:23











  • @KnudLarsen That is very irrelevant.

    – Jon Deaton
    Jul 5 '18 at 23:56
















5












5








5


1






Is there any way to install gcc 4.9 at ubuntu 18.04? I tried



sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa
sudo apt-get update
sudo apt-get install gcc-4.9 g++-4.9


but I get:



Package g++-4.9 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source


I need this version for running some simulations with sniper.
Is there anyway to do it or I have to make a VM with ubuntu 16.04?










share|improve this question
















Is there any way to install gcc 4.9 at ubuntu 18.04? I tried



sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa
sudo apt-get update
sudo apt-get install gcc-4.9 g++-4.9


but I get:



Package g++-4.9 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source


I need this version for running some simulations with sniper.
Is there anyway to do it or I have to make a VM with ubuntu 16.04?







18.04 gcc






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 10 at 7:49









Jeff

734419




734419










asked May 14 '18 at 12:58









Nikos TzagarakisNikos Tzagarakis

31117




31117








  • 1





    Please edit your question to explain why you need gcc version 4.9

    – Knud Larsen
    May 14 '18 at 14:23











  • @KnudLarsen That is very irrelevant.

    – Jon Deaton
    Jul 5 '18 at 23:56
















  • 1





    Please edit your question to explain why you need gcc version 4.9

    – Knud Larsen
    May 14 '18 at 14:23











  • @KnudLarsen That is very irrelevant.

    – Jon Deaton
    Jul 5 '18 at 23:56










1




1





Please edit your question to explain why you need gcc version 4.9

– Knud Larsen
May 14 '18 at 14:23





Please edit your question to explain why you need gcc version 4.9

– Knud Larsen
May 14 '18 at 14:23













@KnudLarsen That is very irrelevant.

– Jon Deaton
Jul 5 '18 at 23:56







@KnudLarsen That is very irrelevant.

– Jon Deaton
Jul 5 '18 at 23:56












1 Answer
1






active

oldest

votes


















9














Available is: sudo apt install g++-4.8



And the no PIE gcc54-c++_5.4.0-ubuntu16_amd64.deb https://drive.google.com/file/d/1ptHLaZXImpeMzq4xuuGGn5VjrvxNSop3/view?usp=sharing , Ref. https://stackoverflow.com/questions/50213089/linking-error-with-gcc-g-7-3-0-on-ubuntu-18-04/50232797#50232797 → My answer.



Or add xenial to /etc/apt/sources.list temporarily : sudo gedit /etc/apt/sources.list



deb http://dk.archive.ubuntu.com/ubuntu/ xenial main
deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe


... and do sudo apt update && sudo apt install g++-4.9






share|improve this answer



















  • 1





    You are the best thanks a lot A thought that if 4.9 was not available the same would happen with 4.8.

    – Nikos Tzagarakis
    May 14 '18 at 15:34











  • You can always use $ apt-cache search g++ g++-4.8 ... and also use the on-line "Search & overview" page packages.ubuntu.com/search?keywords=g%2B%2B&searchon=names

    – Knud Larsen
    May 14 '18 at 17:22













  • Can I find/download gnat-4.x on ubuntu 18.04 somewhere?

    – Zoltán
    Oct 2 '18 at 15:23











  • I guess you can use e.g. the 14.04 gnat-4.6 packages.ubuntu.com/trusty/gnat-4.6 ... or the 16.04 gnat-4.9 packages.ubuntu.com/xenial/gnat-4.9 ... if the dependencies can fit 18.04 . ... Ref. packages.ubuntu.com/search?keywords=gnat&searchon=names

    – Knud Larsen
    Oct 2 '18 at 20:41













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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1036108%2finstall-gcc-4-9-at-ubuntu-18-04%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









9














Available is: sudo apt install g++-4.8



And the no PIE gcc54-c++_5.4.0-ubuntu16_amd64.deb https://drive.google.com/file/d/1ptHLaZXImpeMzq4xuuGGn5VjrvxNSop3/view?usp=sharing , Ref. https://stackoverflow.com/questions/50213089/linking-error-with-gcc-g-7-3-0-on-ubuntu-18-04/50232797#50232797 → My answer.



Or add xenial to /etc/apt/sources.list temporarily : sudo gedit /etc/apt/sources.list



deb http://dk.archive.ubuntu.com/ubuntu/ xenial main
deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe


... and do sudo apt update && sudo apt install g++-4.9






share|improve this answer



















  • 1





    You are the best thanks a lot A thought that if 4.9 was not available the same would happen with 4.8.

    – Nikos Tzagarakis
    May 14 '18 at 15:34











  • You can always use $ apt-cache search g++ g++-4.8 ... and also use the on-line "Search & overview" page packages.ubuntu.com/search?keywords=g%2B%2B&searchon=names

    – Knud Larsen
    May 14 '18 at 17:22













  • Can I find/download gnat-4.x on ubuntu 18.04 somewhere?

    – Zoltán
    Oct 2 '18 at 15:23











  • I guess you can use e.g. the 14.04 gnat-4.6 packages.ubuntu.com/trusty/gnat-4.6 ... or the 16.04 gnat-4.9 packages.ubuntu.com/xenial/gnat-4.9 ... if the dependencies can fit 18.04 . ... Ref. packages.ubuntu.com/search?keywords=gnat&searchon=names

    – Knud Larsen
    Oct 2 '18 at 20:41


















9














Available is: sudo apt install g++-4.8



And the no PIE gcc54-c++_5.4.0-ubuntu16_amd64.deb https://drive.google.com/file/d/1ptHLaZXImpeMzq4xuuGGn5VjrvxNSop3/view?usp=sharing , Ref. https://stackoverflow.com/questions/50213089/linking-error-with-gcc-g-7-3-0-on-ubuntu-18-04/50232797#50232797 → My answer.



Or add xenial to /etc/apt/sources.list temporarily : sudo gedit /etc/apt/sources.list



deb http://dk.archive.ubuntu.com/ubuntu/ xenial main
deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe


... and do sudo apt update && sudo apt install g++-4.9






share|improve this answer



















  • 1





    You are the best thanks a lot A thought that if 4.9 was not available the same would happen with 4.8.

    – Nikos Tzagarakis
    May 14 '18 at 15:34











  • You can always use $ apt-cache search g++ g++-4.8 ... and also use the on-line "Search & overview" page packages.ubuntu.com/search?keywords=g%2B%2B&searchon=names

    – Knud Larsen
    May 14 '18 at 17:22













  • Can I find/download gnat-4.x on ubuntu 18.04 somewhere?

    – Zoltán
    Oct 2 '18 at 15:23











  • I guess you can use e.g. the 14.04 gnat-4.6 packages.ubuntu.com/trusty/gnat-4.6 ... or the 16.04 gnat-4.9 packages.ubuntu.com/xenial/gnat-4.9 ... if the dependencies can fit 18.04 . ... Ref. packages.ubuntu.com/search?keywords=gnat&searchon=names

    – Knud Larsen
    Oct 2 '18 at 20:41
















9












9








9







Available is: sudo apt install g++-4.8



And the no PIE gcc54-c++_5.4.0-ubuntu16_amd64.deb https://drive.google.com/file/d/1ptHLaZXImpeMzq4xuuGGn5VjrvxNSop3/view?usp=sharing , Ref. https://stackoverflow.com/questions/50213089/linking-error-with-gcc-g-7-3-0-on-ubuntu-18-04/50232797#50232797 → My answer.



Or add xenial to /etc/apt/sources.list temporarily : sudo gedit /etc/apt/sources.list



deb http://dk.archive.ubuntu.com/ubuntu/ xenial main
deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe


... and do sudo apt update && sudo apt install g++-4.9






share|improve this answer













Available is: sudo apt install g++-4.8



And the no PIE gcc54-c++_5.4.0-ubuntu16_amd64.deb https://drive.google.com/file/d/1ptHLaZXImpeMzq4xuuGGn5VjrvxNSop3/view?usp=sharing , Ref. https://stackoverflow.com/questions/50213089/linking-error-with-gcc-g-7-3-0-on-ubuntu-18-04/50232797#50232797 → My answer.



Or add xenial to /etc/apt/sources.list temporarily : sudo gedit /etc/apt/sources.list



deb http://dk.archive.ubuntu.com/ubuntu/ xenial main
deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe


... and do sudo apt update && sudo apt install g++-4.9







share|improve this answer












share|improve this answer



share|improve this answer










answered May 14 '18 at 14:42









Knud LarsenKnud Larsen

1,656167




1,656167








  • 1





    You are the best thanks a lot A thought that if 4.9 was not available the same would happen with 4.8.

    – Nikos Tzagarakis
    May 14 '18 at 15:34











  • You can always use $ apt-cache search g++ g++-4.8 ... and also use the on-line "Search & overview" page packages.ubuntu.com/search?keywords=g%2B%2B&searchon=names

    – Knud Larsen
    May 14 '18 at 17:22













  • Can I find/download gnat-4.x on ubuntu 18.04 somewhere?

    – Zoltán
    Oct 2 '18 at 15:23











  • I guess you can use e.g. the 14.04 gnat-4.6 packages.ubuntu.com/trusty/gnat-4.6 ... or the 16.04 gnat-4.9 packages.ubuntu.com/xenial/gnat-4.9 ... if the dependencies can fit 18.04 . ... Ref. packages.ubuntu.com/search?keywords=gnat&searchon=names

    – Knud Larsen
    Oct 2 '18 at 20:41
















  • 1





    You are the best thanks a lot A thought that if 4.9 was not available the same would happen with 4.8.

    – Nikos Tzagarakis
    May 14 '18 at 15:34











  • You can always use $ apt-cache search g++ g++-4.8 ... and also use the on-line "Search & overview" page packages.ubuntu.com/search?keywords=g%2B%2B&searchon=names

    – Knud Larsen
    May 14 '18 at 17:22













  • Can I find/download gnat-4.x on ubuntu 18.04 somewhere?

    – Zoltán
    Oct 2 '18 at 15:23











  • I guess you can use e.g. the 14.04 gnat-4.6 packages.ubuntu.com/trusty/gnat-4.6 ... or the 16.04 gnat-4.9 packages.ubuntu.com/xenial/gnat-4.9 ... if the dependencies can fit 18.04 . ... Ref. packages.ubuntu.com/search?keywords=gnat&searchon=names

    – Knud Larsen
    Oct 2 '18 at 20:41










1




1





You are the best thanks a lot A thought that if 4.9 was not available the same would happen with 4.8.

– Nikos Tzagarakis
May 14 '18 at 15:34





You are the best thanks a lot A thought that if 4.9 was not available the same would happen with 4.8.

– Nikos Tzagarakis
May 14 '18 at 15:34













You can always use $ apt-cache search g++ g++-4.8 ... and also use the on-line "Search & overview" page packages.ubuntu.com/search?keywords=g%2B%2B&searchon=names

– Knud Larsen
May 14 '18 at 17:22







You can always use $ apt-cache search g++ g++-4.8 ... and also use the on-line "Search & overview" page packages.ubuntu.com/search?keywords=g%2B%2B&searchon=names

– Knud Larsen
May 14 '18 at 17:22















Can I find/download gnat-4.x on ubuntu 18.04 somewhere?

– Zoltán
Oct 2 '18 at 15:23





Can I find/download gnat-4.x on ubuntu 18.04 somewhere?

– Zoltán
Oct 2 '18 at 15:23













I guess you can use e.g. the 14.04 gnat-4.6 packages.ubuntu.com/trusty/gnat-4.6 ... or the 16.04 gnat-4.9 packages.ubuntu.com/xenial/gnat-4.9 ... if the dependencies can fit 18.04 . ... Ref. packages.ubuntu.com/search?keywords=gnat&searchon=names

– Knud Larsen
Oct 2 '18 at 20:41







I guess you can use e.g. the 14.04 gnat-4.6 packages.ubuntu.com/trusty/gnat-4.6 ... or the 16.04 gnat-4.9 packages.ubuntu.com/xenial/gnat-4.9 ... if the dependencies can fit 18.04 . ... Ref. packages.ubuntu.com/search?keywords=gnat&searchon=names

– Knud Larsen
Oct 2 '18 at 20:41




















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1036108%2finstall-gcc-4-9-at-ubuntu-18-04%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

How did Captain America manage to do this?

迪纳利

南乌拉尔铁路局