In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
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.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.