Install gcc 4.9 at ubuntu 18.04How to install gcc 4.9 on Ubuntu 14.04?PPA removed and purged but still...

How can I portion out frozen cookie dough?

Either of .... (Plural/Singular)

What does *dead* mean in *What do you mean, dead?*?

How do you make a gun that shoots melee weapons and/or swords?

Is there stress on two letters on the word стоят

What is the purpose of a disclaimer like "this is not legal advice"?

Computation logic of Partway in TikZ

Is it possible to clone a polymorphic object without manually adding overridden clone method into each derived class in C++?

Did Amazon pay $0 in taxes last year?

Would those living in a "perfect society" not understand satire

(Codewars) Linked Lists-Sorted Insert

PTIJ: Who was the sixth set of priestly clothes for?

What will happen if my luggage gets delayed?

The (Easy) Road to Code

How exactly does an Ethernet collision happen in the cable, since nodes use different circuits for Tx and Rx?

What do you call someone who likes to pick fights?

How to educate team mate to take screenshots for bugs with out unwanted stuff

Short scifi story where reproductive organs are converted to produce "materials", pregnant protagonist is "found fit" to be a mother

Is it a Cyclops number? "Nobody" knows!

Which country has more?

ESPP--any reason not to go all in?

Smooth vector fields on a surface modulo diffeomorphisms

How should I solve this integral with changing parameters?

Idiom for feeling after taking risk and someone else being rewarded



Install gcc 4.9 at ubuntu 18.04


How to install gcc 4.9 on Ubuntu 14.04?PPA removed and purged but still showing available upgradesCan't install gcc-4.9-base:i386 on Ubuntu 14.04How should I handle ABI incompatability between gcc-4.9 and gcc-5?Dependency issue: gcc-4.9-base being kept backWhat is the better way to install GCC6.1?Installing gcc-7 (and newer packages) in Ubuntu 16.04How to install gcc-4.9 on ubuntu 17.10(artful)Downgrade GNU Compilers Ubuntu 18.04Ubuntu 18.04 system broken after uninstalling openssl













4















Is there anyway 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


















4















Is there anyway 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
















4












4








4


1






Is there anyway 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 anyway 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










asked May 14 '18 at 12:58









Nikos TzagarakisNikos Tzagarakis

2617




2617








  • 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












2 Answers
2






active

oldest

votes


















7














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
























  • 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





















0














Hmmmm. im not sure... I think you installed the minimal version of linux and thats why... I did the same thing... I installed the full version and it worked perfectly.






share|improve this answer








New contributor




Cosmicskylight is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















    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

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    7














    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
























    • 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


















    7














    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
























    • 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
















    7












    7








    7







    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,626167




    1,626167













    • 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





















    • 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



















    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















    0














    Hmmmm. im not sure... I think you installed the minimal version of linux and thats why... I did the same thing... I installed the full version and it worked perfectly.






    share|improve this answer








    New contributor




    Cosmicskylight is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

























      0














      Hmmmm. im not sure... I think you installed the minimal version of linux and thats why... I did the same thing... I installed the full version and it worked perfectly.






      share|improve this answer








      New contributor




      Cosmicskylight is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.























        0












        0








        0







        Hmmmm. im not sure... I think you installed the minimal version of linux and thats why... I did the same thing... I installed the full version and it worked perfectly.






        share|improve this answer








        New contributor




        Cosmicskylight is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.










        Hmmmm. im not sure... I think you installed the minimal version of linux and thats why... I did the same thing... I installed the full version and it worked perfectly.







        share|improve this answer








        New contributor




        Cosmicskylight is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        Cosmicskylight is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 16 mins ago









        CosmicskylightCosmicskylight

        1




        1




        New contributor




        Cosmicskylight is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        Cosmicskylight is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        Cosmicskylight is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






























            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

            Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

            Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

            Should I use Docker or LXD?How to cache (more) data on SSD/RAM to avoid spin up?Unable to get Windows File...