Installing gcc-7.2 via apt











up vote
2
down vote

favorite
1












how do I install gcc-7.2 via apt on zesty? Anything I found is either installing 7.0.1 or for installing gcc on Ubuntu 16.10










share|improve this question


























    up vote
    2
    down vote

    favorite
    1












    how do I install gcc-7.2 via apt on zesty? Anything I found is either installing 7.0.1 or for installing gcc on Ubuntu 16.10










    share|improve this question
























      up vote
      2
      down vote

      favorite
      1









      up vote
      2
      down vote

      favorite
      1






      1





      how do I install gcc-7.2 via apt on zesty? Anything I found is either installing 7.0.1 or for installing gcc on Ubuntu 16.10










      share|improve this question













      how do I install gcc-7.2 via apt on zesty? Anything I found is either installing 7.0.1 or for installing gcc on Ubuntu 16.10







      17.04 gcc






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 24 '17 at 15:26









      Andrei R.

      7817




      7817






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          The Ubuntu maintainers have some alpha-quality/unsupported gcc 7.2 packages that might work. Use at your own risk



          $ gcc-7 -v
          ...
          gcc version 7.2.0 (Ubuntu 7.2.0-1ubuntu1~16.04)
          $




          Install it (should work on Trusty to Zesty)



          sudo env DEBIAN_FRONTEND=noninteractive                                    
          bash -c 'apt-get install -y python-software-properties lsb-release &&
          echo -e "Package: gcc-7\nPin: release n=$(lsb_release -sc)\nPin-Priority: 990" > /etc/apt/preferences.d/gcc-7
          apt-add-repository -yu ppa:ubuntu-toolchain-r/test &&
          apt-get install -y gcc-7'


          More resources, including compiling DIY




          1. https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test

          2. How do I install g++-7 on Ubuntu?

          3. https://help.ubuntu.com/community/CompilingEasyHowTo

          4. https://help.ubuntu.com/community/AutoApt

          5. https://solarianprogrammer.com/2016/10/07/building-gcc-ubuntu-linux/

          6. http://eli.thegreenplace.net/2014/01/16/building-gcc-4-8-from-source-on-ubunu-12-04/

          7. http://www.linuxfromscratch.org/lfs/view/8.1-systemd/chapter05/gcc-pass2.html

          8. https://gcc.gnu.org/wiki/InstallingGCC






          share|improve this answer























          • sadly, it didn't do the trick. Compiling from source is not an option
            – Andrei R.
            Sep 21 '17 at 6:46










          • @AndreiR. I think the issue is that you're on zesty and there aren't builds of gcc 7.2 for it in the ppa at the time of this writing (see launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test for available builds) There is, however, a binary blob of 7.2 for denial. Thus, what you need to do is replace the apt-add-repository step from @Barry's answer and replace it with apt-add-repository -yu 'deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main'.
            – lungj
            Jan 5 at 16:21













          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',
          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%2f949473%2finstalling-gcc-7-2-via-apt%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








          up vote
          0
          down vote













          The Ubuntu maintainers have some alpha-quality/unsupported gcc 7.2 packages that might work. Use at your own risk



          $ gcc-7 -v
          ...
          gcc version 7.2.0 (Ubuntu 7.2.0-1ubuntu1~16.04)
          $




          Install it (should work on Trusty to Zesty)



          sudo env DEBIAN_FRONTEND=noninteractive                                    
          bash -c 'apt-get install -y python-software-properties lsb-release &&
          echo -e "Package: gcc-7\nPin: release n=$(lsb_release -sc)\nPin-Priority: 990" > /etc/apt/preferences.d/gcc-7
          apt-add-repository -yu ppa:ubuntu-toolchain-r/test &&
          apt-get install -y gcc-7'


          More resources, including compiling DIY




          1. https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test

          2. How do I install g++-7 on Ubuntu?

          3. https://help.ubuntu.com/community/CompilingEasyHowTo

          4. https://help.ubuntu.com/community/AutoApt

          5. https://solarianprogrammer.com/2016/10/07/building-gcc-ubuntu-linux/

          6. http://eli.thegreenplace.net/2014/01/16/building-gcc-4-8-from-source-on-ubunu-12-04/

          7. http://www.linuxfromscratch.org/lfs/view/8.1-systemd/chapter05/gcc-pass2.html

          8. https://gcc.gnu.org/wiki/InstallingGCC






          share|improve this answer























          • sadly, it didn't do the trick. Compiling from source is not an option
            – Andrei R.
            Sep 21 '17 at 6:46










          • @AndreiR. I think the issue is that you're on zesty and there aren't builds of gcc 7.2 for it in the ppa at the time of this writing (see launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test for available builds) There is, however, a binary blob of 7.2 for denial. Thus, what you need to do is replace the apt-add-repository step from @Barry's answer and replace it with apt-add-repository -yu 'deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main'.
            – lungj
            Jan 5 at 16:21

















          up vote
          0
          down vote













          The Ubuntu maintainers have some alpha-quality/unsupported gcc 7.2 packages that might work. Use at your own risk



          $ gcc-7 -v
          ...
          gcc version 7.2.0 (Ubuntu 7.2.0-1ubuntu1~16.04)
          $




          Install it (should work on Trusty to Zesty)



          sudo env DEBIAN_FRONTEND=noninteractive                                    
          bash -c 'apt-get install -y python-software-properties lsb-release &&
          echo -e "Package: gcc-7\nPin: release n=$(lsb_release -sc)\nPin-Priority: 990" > /etc/apt/preferences.d/gcc-7
          apt-add-repository -yu ppa:ubuntu-toolchain-r/test &&
          apt-get install -y gcc-7'


          More resources, including compiling DIY




          1. https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test

          2. How do I install g++-7 on Ubuntu?

          3. https://help.ubuntu.com/community/CompilingEasyHowTo

          4. https://help.ubuntu.com/community/AutoApt

          5. https://solarianprogrammer.com/2016/10/07/building-gcc-ubuntu-linux/

          6. http://eli.thegreenplace.net/2014/01/16/building-gcc-4-8-from-source-on-ubunu-12-04/

          7. http://www.linuxfromscratch.org/lfs/view/8.1-systemd/chapter05/gcc-pass2.html

          8. https://gcc.gnu.org/wiki/InstallingGCC






          share|improve this answer























          • sadly, it didn't do the trick. Compiling from source is not an option
            – Andrei R.
            Sep 21 '17 at 6:46










          • @AndreiR. I think the issue is that you're on zesty and there aren't builds of gcc 7.2 for it in the ppa at the time of this writing (see launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test for available builds) There is, however, a binary blob of 7.2 for denial. Thus, what you need to do is replace the apt-add-repository step from @Barry's answer and replace it with apt-add-repository -yu 'deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main'.
            – lungj
            Jan 5 at 16:21















          up vote
          0
          down vote










          up vote
          0
          down vote









          The Ubuntu maintainers have some alpha-quality/unsupported gcc 7.2 packages that might work. Use at your own risk



          $ gcc-7 -v
          ...
          gcc version 7.2.0 (Ubuntu 7.2.0-1ubuntu1~16.04)
          $




          Install it (should work on Trusty to Zesty)



          sudo env DEBIAN_FRONTEND=noninteractive                                    
          bash -c 'apt-get install -y python-software-properties lsb-release &&
          echo -e "Package: gcc-7\nPin: release n=$(lsb_release -sc)\nPin-Priority: 990" > /etc/apt/preferences.d/gcc-7
          apt-add-repository -yu ppa:ubuntu-toolchain-r/test &&
          apt-get install -y gcc-7'


          More resources, including compiling DIY




          1. https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test

          2. How do I install g++-7 on Ubuntu?

          3. https://help.ubuntu.com/community/CompilingEasyHowTo

          4. https://help.ubuntu.com/community/AutoApt

          5. https://solarianprogrammer.com/2016/10/07/building-gcc-ubuntu-linux/

          6. http://eli.thegreenplace.net/2014/01/16/building-gcc-4-8-from-source-on-ubunu-12-04/

          7. http://www.linuxfromscratch.org/lfs/view/8.1-systemd/chapter05/gcc-pass2.html

          8. https://gcc.gnu.org/wiki/InstallingGCC






          share|improve this answer














          The Ubuntu maintainers have some alpha-quality/unsupported gcc 7.2 packages that might work. Use at your own risk



          $ gcc-7 -v
          ...
          gcc version 7.2.0 (Ubuntu 7.2.0-1ubuntu1~16.04)
          $




          Install it (should work on Trusty to Zesty)



          sudo env DEBIAN_FRONTEND=noninteractive                                    
          bash -c 'apt-get install -y python-software-properties lsb-release &&
          echo -e "Package: gcc-7\nPin: release n=$(lsb_release -sc)\nPin-Priority: 990" > /etc/apt/preferences.d/gcc-7
          apt-add-repository -yu ppa:ubuntu-toolchain-r/test &&
          apt-get install -y gcc-7'


          More resources, including compiling DIY




          1. https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test

          2. How do I install g++-7 on Ubuntu?

          3. https://help.ubuntu.com/community/CompilingEasyHowTo

          4. https://help.ubuntu.com/community/AutoApt

          5. https://solarianprogrammer.com/2016/10/07/building-gcc-ubuntu-linux/

          6. http://eli.thegreenplace.net/2014/01/16/building-gcc-4-8-from-source-on-ubunu-12-04/

          7. http://www.linuxfromscratch.org/lfs/view/8.1-systemd/chapter05/gcc-pass2.html

          8. https://gcc.gnu.org/wiki/InstallingGCC







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Sep 12 '17 at 22:54

























          answered Sep 9 '17 at 5:42









          Barry

          1013




          1013












          • sadly, it didn't do the trick. Compiling from source is not an option
            – Andrei R.
            Sep 21 '17 at 6:46










          • @AndreiR. I think the issue is that you're on zesty and there aren't builds of gcc 7.2 for it in the ppa at the time of this writing (see launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test for available builds) There is, however, a binary blob of 7.2 for denial. Thus, what you need to do is replace the apt-add-repository step from @Barry's answer and replace it with apt-add-repository -yu 'deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main'.
            – lungj
            Jan 5 at 16:21




















          • sadly, it didn't do the trick. Compiling from source is not an option
            – Andrei R.
            Sep 21 '17 at 6:46










          • @AndreiR. I think the issue is that you're on zesty and there aren't builds of gcc 7.2 for it in the ppa at the time of this writing (see launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test for available builds) There is, however, a binary blob of 7.2 for denial. Thus, what you need to do is replace the apt-add-repository step from @Barry's answer and replace it with apt-add-repository -yu 'deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main'.
            – lungj
            Jan 5 at 16:21


















          sadly, it didn't do the trick. Compiling from source is not an option
          – Andrei R.
          Sep 21 '17 at 6:46




          sadly, it didn't do the trick. Compiling from source is not an option
          – Andrei R.
          Sep 21 '17 at 6:46












          @AndreiR. I think the issue is that you're on zesty and there aren't builds of gcc 7.2 for it in the ppa at the time of this writing (see launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test for available builds) There is, however, a binary blob of 7.2 for denial. Thus, what you need to do is replace the apt-add-repository step from @Barry's answer and replace it with apt-add-repository -yu 'deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main'.
          – lungj
          Jan 5 at 16:21






          @AndreiR. I think the issue is that you're on zesty and there aren't builds of gcc 7.2 for it in the ppa at the time of this writing (see launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test for available builds) There is, however, a binary blob of 7.2 for denial. Thus, what you need to do is replace the apt-add-repository step from @Barry's answer and replace it with apt-add-repository -yu 'deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main'.
          – lungj
          Jan 5 at 16:21




















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f949473%2finstalling-gcc-7-2-via-apt%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

          Quarter-circle Tiles

          build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

          Mont Emei