Install gcc 4.9 at ubuntu 18.04












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 38 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

            GameSpot

            日野市

            Tu-95轟炸機