首页 > 系统相关 >ubuntu16.04 安装gcc8 g++8

ubuntu16.04 安装gcc8 g++8

时间:2022-12-12 22:56:33浏览次数:58  
标签:ubuntu16.04 gcc ++ sudo alternatives update apt gcc8

下载:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test

sudo apt-get update

sudo apt-get install gcc-8

sudo apt-get install g++-8

 

配置:将gcc8,g++8作为默认选项

sudo update-alternatives --install /usr/bin/gcc gcc  /usr/bin/gcc-8 100

sudo update-alternatives --config gcc

 

sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 100

sudo update-alternatives --config g++

标签:ubuntu16.04,gcc,++,sudo,alternatives,update,apt,gcc8
From: https://www.cnblogs.com/wuyun--wy/p/16977352.html

相关文章