Installing gcc-7.2 via apt
up vote
2
down vote
favorite
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
add a comment |
up vote
2
down vote
favorite
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
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
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
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
17.04 gcc
asked Aug 24 '17 at 15:26
Andrei R.
7817
7817
add a comment |
add a comment |
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
- https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
- How do I install g++-7 on Ubuntu?
- https://help.ubuntu.com/community/CompilingEasyHowTo
- https://help.ubuntu.com/community/AutoApt
- https://solarianprogrammer.com/2016/10/07/building-gcc-ubuntu-linux/
- http://eli.thegreenplace.net/2014/01/16/building-gcc-4-8-from-source-on-ubunu-12-04/
- http://www.linuxfromscratch.org/lfs/view/8.1-systemd/chapter05/gcc-pass2.html
- https://gcc.gnu.org/wiki/InstallingGCC
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 withapt-add-repository -yu 'deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main'
.
– lungj
Jan 5 at 16:21
add a comment |
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
- https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
- How do I install g++-7 on Ubuntu?
- https://help.ubuntu.com/community/CompilingEasyHowTo
- https://help.ubuntu.com/community/AutoApt
- https://solarianprogrammer.com/2016/10/07/building-gcc-ubuntu-linux/
- http://eli.thegreenplace.net/2014/01/16/building-gcc-4-8-from-source-on-ubunu-12-04/
- http://www.linuxfromscratch.org/lfs/view/8.1-systemd/chapter05/gcc-pass2.html
- https://gcc.gnu.org/wiki/InstallingGCC
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 withapt-add-repository -yu 'deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main'
.
– lungj
Jan 5 at 16:21
add a comment |
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
- https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
- How do I install g++-7 on Ubuntu?
- https://help.ubuntu.com/community/CompilingEasyHowTo
- https://help.ubuntu.com/community/AutoApt
- https://solarianprogrammer.com/2016/10/07/building-gcc-ubuntu-linux/
- http://eli.thegreenplace.net/2014/01/16/building-gcc-4-8-from-source-on-ubunu-12-04/
- http://www.linuxfromscratch.org/lfs/view/8.1-systemd/chapter05/gcc-pass2.html
- https://gcc.gnu.org/wiki/InstallingGCC
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 withapt-add-repository -yu 'deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main'
.
– lungj
Jan 5 at 16:21
add a comment |
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
- https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
- How do I install g++-7 on Ubuntu?
- https://help.ubuntu.com/community/CompilingEasyHowTo
- https://help.ubuntu.com/community/AutoApt
- https://solarianprogrammer.com/2016/10/07/building-gcc-ubuntu-linux/
- http://eli.thegreenplace.net/2014/01/16/building-gcc-4-8-from-source-on-ubunu-12-04/
- http://www.linuxfromscratch.org/lfs/view/8.1-systemd/chapter05/gcc-pass2.html
- https://gcc.gnu.org/wiki/InstallingGCC
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
- https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
- How do I install g++-7 on Ubuntu?
- https://help.ubuntu.com/community/CompilingEasyHowTo
- https://help.ubuntu.com/community/AutoApt
- https://solarianprogrammer.com/2016/10/07/building-gcc-ubuntu-linux/
- http://eli.thegreenplace.net/2014/01/16/building-gcc-4-8-from-source-on-ubunu-12-04/
- http://www.linuxfromscratch.org/lfs/view/8.1-systemd/chapter05/gcc-pass2.html
- https://gcc.gnu.org/wiki/InstallingGCC
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 withapt-add-repository -yu 'deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main'
.
– lungj
Jan 5 at 16:21
add a comment |
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 withapt-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
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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