install gcc-9 on Ubuntu 18.04?
It is now available in ubuntu-toolchain-r too:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install gcc-9
If the add-apt-repository
command cannot be found, run this:
sudo apt install software-properties-common
I used a search for PPAs, using search on launchpad.net and found JonathonF's GCC 9.0 PPA. You can install this package by:
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:jonathonf/gcc-9.0
sudo apt-get update
sudo apt-get install gcc-9