当前位置: 首页 > news >正文

公司网站宣传保险网站建设方案

公司网站宣传,保险网站建设方案,做网站一天赚多少钱,做网站图标目录 1 背景2 安装2.1 Ubuntu 20.042.2 Ubuntu 18.04 3 配置4 切换4.1 切换到版本94.2 切换到版本10 1 背景 最近在研究C20中的协程需要安装GCC版本10。用到GCC多版本切换,记录步骤。 2 安装 2.1 Ubuntu 20.04 运行如下命令安装两个版本编译器: sudo apt insta…

目录

  • 1 背景
  • 2 安装
    • 2.1 Ubuntu 20.04
    • 2.2 Ubuntu 18.04
  • 3 配置
  • 4 切换
    • 4.1 切换到版本9
    • 4.2 切换到版本10

1 背景

最近在研究C++20中的协程需要安装GCC版本10。用到GCC多版本切换,记录步骤。

2 安装

2.1 Ubuntu 20.04

运行如下命令安装两个版本编译器:

sudo apt install gcc-9 g++-9
sudo apt install gcc-10 g++-10

2.2 Ubuntu 18.04

默认安装最高版本gcc-7,添加Toolchain Test Builds PPA(个人软件包存档),它提供了GCC 10的最新版本

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt install gcc-9 g++-9
sudo apt install gcc-10 g++-10

3 配置

使用update-alternatives命令配置多编译器版本:

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90 --slave /usr/bin/g++ g++ /usr/bin/g++-9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10

说明:

  • gcc与g++版本绑定在一起了,修改gcc版本会同时修改g++版本

4 切换

使用如下命令切换编译器版本:

sudo update-alternatives --config gcc

4.1 切换到版本9

$ sudo update-alternatives --config gcc
There are 2 choices for the alternative gcc (providing /usr/bin/gcc).Selection    Path             Priority   Status
------------------------------------------------------------
* 0            /usr/bin/gcc-10   100       auto mode1            /usr/bin/gcc-10   100       manual mode2            /usr/bin/gcc-9    90        manual modePress <enter> to keep the current choice[*], or type selection number: 2

查看版本:

$ gcc --version
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.3) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ g++ --version
g++ (Ubuntu 9.4.0-1ubuntu1~20.04.3) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

4.2 切换到版本10

$ sudo update-alternatives --config gcc
There are 2 choices for the alternative gcc (providing /usr/bin/gcc).Selection    Path             Priority   Status
------------------------------------------------------------
* 0            /usr/bin/gcc-10   100       auto mode1            /usr/bin/gcc-10   100       manual mode2            /usr/bin/gcc-9    90        manual modePress <enter> to keep the current choice[*], or type selection number: 1

查看版本:

$ gcc --version
gcc (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ g++ --version
g++ (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
http://www.yayakq.cn/news/36994/

相关文章:

  • 西工网站建设设计广告投放是做什么的
  • 自适应营销网站长春网站推广排名
  • 滕州市做淘宝网站的北京宣传片制作公司
  • 西安网站建设服务seo在网站建设中的作用
  • 有什么网站可以做推广青岛网站seo
  • 做网站 请示学习软件大全
  • .net网站架设开网站需要投资多少钱
  • 企业网站展示论文网站制作企
  • 网页设计站点建设实验报告网站建设与维护新的体会
  • 网站建设需要c语言吗什么系统有wordpress
  • 做心悦腾龙光环的网站郑州 制造 网站
  • 网站板块模板开发区人力资源市场招聘信息
  • 重庆旅游网站制作公司官方网站建设费用应入什么科目
  • 浏览器正能量网站免费软件唐山海港经济开发区人才网
  • 用易语言做网站抢购软件网页制作软件怎么做
  • 网站建设需求统计表全球设计网分站
  • 福田网站建设哪家好电子商务网站建设的基本要素
  • 一次性付费做网站众美商务公馆做网站
  • 网站定制开发收费标准是多少服务器域名已有做网站
  • 沈阳做手机网站的公司网页设计与网站建设考试名词解释
  • 网站建设策划书怎么写wordpress 页面跳转
  • 汽车网站开发seo排名点击手机
  • 怎么自己做模板网站公司网站app怎么做
  • 奉贤专业做网站网站首页开发
  • 网站建设宏观环境网页设计一般用什么软件
  • 网站网站开发的公司电话wordpress搬家后全部页面404
  • 网站开发程序员岗位职责免费发布信息网站大全有哪些
  • 龙岗英文网站制作室内设计软件自己设计
  • 莆田网站建设方案服务沈阳网站托管公司
  • 国内建站平台长沙企业网站制作哪家好