Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to upgrade Ubuntu 16.04How to upgrade gcc-6 and GroupMill 6

Shulou Source: shulou.com Published: 2022-06-01 23:23:19 10月03日 Update

This article will explain in detail how Ubuntu 16.04 upgrades gcc-6 and glossy music 6. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

In the afternoon, use Matlab to compile a cpp program, prompting that the gcc-5 version is too low. In a fit of anger, upgrade gcc-6!

1. Add source

Sudo add-apt-repository ppa:ubuntu-toolchain-r/testsudo apt-get update

2. Install gcc-6 and glossy music 6

Sudo apt-get install gcc-6 gallop music 6

3. Configure gcc,g++ links

We look at the gcc currently used by the system and find that it is a symbolic link:

Ll / usr/bin/gcclrwxrwxrwx 1 root root 5 Nov 16 16:49 gcc- > gcc-5

Gmail + is also:

Ll / usr/bin/g++lrwxrwxrwx 1 root root 5 Nov 16 16:49 grubbing-> glittering murmur5

So we can redirect the gcc link to gcc-6:

Cd / usr/binsudo sudo rm gccsudo ln-s gcc-6 gcc

Similarly, grub + is re-linked to glossy colors 6:

Sudo rm g++sudo ln-s glossy music music 6 galleys +

Re-check the links for gcc and Gmail +:

Ll / usr/bin/gcclrwxrwxrwx 1 root root 5 Nov 16 16:49 gcc- > gcc-6

Ll / usr/bin/g++lrwxrwxrwx 1 root root 5 Nov 16 16:49 grubbing-> glittering murmur6

By the way, take a look at the versions of gcc and Gmail +:

Gcc-version

Gcc (Ubuntu 6.5.0-2ubuntu1~16.04) 6.5.0 20181026Copyright (C) 2017 Free Software Foundation, Inc.This is free software; see the source for copying conditions. There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Glossary:

Gmail +-- version

2ubuntu1~16.04 + (Ubuntu 6.5.0-2ubuntu1~16.04) 6.5.0 20181026Copyright (C) 2017 Free Software Foundation, Inc.This is free software; see the source for copying conditions. There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This is the end of the article on "how to upgrade gcc-6 and Ubuntu 16.04". I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Tags: Links upgrades articles more versions good practical angry content articles knowledge programs symbols systems references help tips related compilation configuration Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Shulou Tech Info vpn Linux macOS