How to install gfortran 5 on Ubuntu 14.04












1















I want to install gfortran 5. As per how do I install gfortran, I tried
sudo apt-get install gfortran but it installs 4.8.4 gfortran compiler. I searched and found this.



When I wrote,



sudo add-apt-repository ppa:ubuntu-toolchain-r/test


it gives error



Cannot add PPA: 'ppa:ubuntu-toolchain-r/test'.
Please check that the PPA name or format is correct.


I am not expert in linux or ubuntu so just searched ways on internet, but no luck so far. On this webpage, it prompts a download link, but I have no clue how to install that package.



Update:

As per above link of ubuntu package gfortran-5, I installed synaptic package, but it doesn't find gfortran-5.



Does anyone know workarounds?










share|improve this question

























  • Have you tried to add the PPA manually?

    – Mostafa Ahangarha
    May 9 '16 at 17:24
















1















I want to install gfortran 5. As per how do I install gfortran, I tried
sudo apt-get install gfortran but it installs 4.8.4 gfortran compiler. I searched and found this.



When I wrote,



sudo add-apt-repository ppa:ubuntu-toolchain-r/test


it gives error



Cannot add PPA: 'ppa:ubuntu-toolchain-r/test'.
Please check that the PPA name or format is correct.


I am not expert in linux or ubuntu so just searched ways on internet, but no luck so far. On this webpage, it prompts a download link, but I have no clue how to install that package.



Update:

As per above link of ubuntu package gfortran-5, I installed synaptic package, but it doesn't find gfortran-5.



Does anyone know workarounds?










share|improve this question

























  • Have you tried to add the PPA manually?

    – Mostafa Ahangarha
    May 9 '16 at 17:24














1












1








1








I want to install gfortran 5. As per how do I install gfortran, I tried
sudo apt-get install gfortran but it installs 4.8.4 gfortran compiler. I searched and found this.



When I wrote,



sudo add-apt-repository ppa:ubuntu-toolchain-r/test


it gives error



Cannot add PPA: 'ppa:ubuntu-toolchain-r/test'.
Please check that the PPA name or format is correct.


I am not expert in linux or ubuntu so just searched ways on internet, but no luck so far. On this webpage, it prompts a download link, but I have no clue how to install that package.



Update:

As per above link of ubuntu package gfortran-5, I installed synaptic package, but it doesn't find gfortran-5.



Does anyone know workarounds?










share|improve this question
















I want to install gfortran 5. As per how do I install gfortran, I tried
sudo apt-get install gfortran but it installs 4.8.4 gfortran compiler. I searched and found this.



When I wrote,



sudo add-apt-repository ppa:ubuntu-toolchain-r/test


it gives error



Cannot add PPA: 'ppa:ubuntu-toolchain-r/test'.
Please check that the PPA name or format is correct.


I am not expert in linux or ubuntu so just searched ways on internet, but no luck so far. On this webpage, it prompts a download link, but I have no clue how to install that package.



Update:

As per above link of ubuntu package gfortran-5, I installed synaptic package, but it doesn't find gfortran-5.



Does anyone know workarounds?







apt software-installation ppa synaptic






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 13 '17 at 12:24









Community

1




1










asked May 8 '16 at 17:24









rtryher344rtryher344

613




613













  • Have you tried to add the PPA manually?

    – Mostafa Ahangarha
    May 9 '16 at 17:24



















  • Have you tried to add the PPA manually?

    – Mostafa Ahangarha
    May 9 '16 at 17:24

















Have you tried to add the PPA manually?

– Mostafa Ahangarha
May 9 '16 at 17:24





Have you tried to add the PPA manually?

– Mostafa Ahangarha
May 9 '16 at 17:24










1 Answer
1






active

oldest

votes


















1














gfortran-5 is not currently available for Ubuntu 14.04 "Trusty". There are however packages available for 16.04 "Xenial" and later. If you must have Version 5 and can't get by with version 4.8 which is the latest currently available in the repositories for Trusty, You have some options.



A) Upgrade your installation to 16.04 LTS which will be supported for 2 years longer than your current installation.



B) Attempt to compile from source



Personally I would consider approach A to have the best chance of success.



Sources:



http://packages.ubuntu.com/search?keywords=gfortran&searchon=names



https://launchpad.net/+search?field.text=gfortran-5



https://gcc.gnu.org/wiki/GFortranBinaries#FromSource






share|improve this answer























    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%2f769406%2fhow-to-install-gfortran-5-on-ubuntu-14-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









    1














    gfortran-5 is not currently available for Ubuntu 14.04 "Trusty". There are however packages available for 16.04 "Xenial" and later. If you must have Version 5 and can't get by with version 4.8 which is the latest currently available in the repositories for Trusty, You have some options.



    A) Upgrade your installation to 16.04 LTS which will be supported for 2 years longer than your current installation.



    B) Attempt to compile from source



    Personally I would consider approach A to have the best chance of success.



    Sources:



    http://packages.ubuntu.com/search?keywords=gfortran&searchon=names



    https://launchpad.net/+search?field.text=gfortran-5



    https://gcc.gnu.org/wiki/GFortranBinaries#FromSource






    share|improve this answer




























      1














      gfortran-5 is not currently available for Ubuntu 14.04 "Trusty". There are however packages available for 16.04 "Xenial" and later. If you must have Version 5 and can't get by with version 4.8 which is the latest currently available in the repositories for Trusty, You have some options.



      A) Upgrade your installation to 16.04 LTS which will be supported for 2 years longer than your current installation.



      B) Attempt to compile from source



      Personally I would consider approach A to have the best chance of success.



      Sources:



      http://packages.ubuntu.com/search?keywords=gfortran&searchon=names



      https://launchpad.net/+search?field.text=gfortran-5



      https://gcc.gnu.org/wiki/GFortranBinaries#FromSource






      share|improve this answer


























        1












        1








        1







        gfortran-5 is not currently available for Ubuntu 14.04 "Trusty". There are however packages available for 16.04 "Xenial" and later. If you must have Version 5 and can't get by with version 4.8 which is the latest currently available in the repositories for Trusty, You have some options.



        A) Upgrade your installation to 16.04 LTS which will be supported for 2 years longer than your current installation.



        B) Attempt to compile from source



        Personally I would consider approach A to have the best chance of success.



        Sources:



        http://packages.ubuntu.com/search?keywords=gfortran&searchon=names



        https://launchpad.net/+search?field.text=gfortran-5



        https://gcc.gnu.org/wiki/GFortranBinaries#FromSource






        share|improve this answer













        gfortran-5 is not currently available for Ubuntu 14.04 "Trusty". There are however packages available for 16.04 "Xenial" and later. If you must have Version 5 and can't get by with version 4.8 which is the latest currently available in the repositories for Trusty, You have some options.



        A) Upgrade your installation to 16.04 LTS which will be supported for 2 years longer than your current installation.



        B) Attempt to compile from source



        Personally I would consider approach A to have the best chance of success.



        Sources:



        http://packages.ubuntu.com/search?keywords=gfortran&searchon=names



        https://launchpad.net/+search?field.text=gfortran-5



        https://gcc.gnu.org/wiki/GFortranBinaries#FromSource







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 23 '17 at 15:11









        Elder GeekElder Geek

        27.4k955130




        27.4k955130






























            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%2f769406%2fhow-to-install-gfortran-5-on-ubuntu-14-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

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

            Eduardo VII do Reino Unido