- g++ is slave
- 800 is priority
- update-alternatives: warning: forcing reinstallation of alternative /usr/bin/gcc-8 because link group gcc is broken
How to switch between multiple GCC and G++ compiler versions on Ubuntu 20.04 LTS Focal Fossa
In this tutorial we will install multiple versions of GCC and G++ compilers using the apt install command. Furthermore, by use of the update-alternatives tool you will learn how to easily switch between multiple GCC and G++ compiler versions and how to check the currently selected compiler version.
https://linuxconfig.org/how-to-switch-between-multiple-gcc-and-g-compiler-versions-on-ubuntu-20-04-lts-focal-fossa
Ubuntu 18.04.01 LTS에서 gcc7.3을 gcc8로 올바르게 업그레이드하는 방법은 무엇입니까?
email protected]:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.1 LTS Release: 18.04 Codename: bionic gcc 버전 7.3.0이 있습니다. [email protected]:~$ gcc -v Using built-in specs.
https://www.it-swarm.dev/ko/server/ubuntu-180401-lts%EC%97%90%EC%84%9C-gcc73%EC%9D%84-gcc8%EB%A1%9C-%EC%98%AC%EB%B0%94%EB%A5%B4%EA%B2%8C-%EC%97%85%EA%B7%B8%EB%A0%88%EC%9D%B4%EB%93%9C%ED%95%98%EB%8A%94-%EB%B0%A9%EB%B2%95%EC%9D%80-%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C/998281422/
Install gcc-8 only on Ubuntu 18.04?
gcc-7 and gcc-8 will happily co-live together. I would suggest to let gcc-7 be installed, for satisfying build-essential and perhaps other dependent packages, and configure gcc-8 to be your default gcc installation.
https://askubuntu.com/questions/1028601/install-gcc-8-only-on-ubuntu-18-04

Seonglae Cho