gcc-11 何时会出现在 Ubuntu 存储库中? [英] When gcc-11 will appear in Ubuntu repositories?

查看:22
本文介绍了gcc-11 何时会出现在 Ubuntu 存储库中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天终于发布了 GCC 11.1.然而,现在它只能从源代码构建,所以我想知道我们什么时候可以用 apt 获得它?

GCC 11.1 was finally released yesterday. However, now it can only be built from source, so I'm wondering when we can get it with apt?

推荐答案

在 Ubuntu 20.04 上,我按照此处的说明进行操作:

On Ubuntu 20.04, I followed the instructions here:

这是为了:

  1. 通过在/etc/apt/sources.list 中添加一行来更新列出的镜像,如下所示:

  1. Update the listed mirrors by adding a line to your /etc/apt/sources.list like this:

sudo add-apt-repository 'deb http://mirrors.kernel.org/ubuntu hirsute main Universe'

根据您的位置从列表中选择一个镜像.我选择内核就像我在北美一样.

Choose a mirror based on your location from the list. I chose the kernel mirror as I am in North America.

sudo apt-get update

sudo apt-get install gcc-11

sudo apt-get install gcc-11

在那之后 which gcc-11 应该生成一个到 gcc-11 的路径.在我的机器上是:

After that which gcc-11 should produce a path to gcc-11. On my machine it was:

which gcc-11

产生:/usr/bin/gcc-11

produces: /usr/bin/gcc-11

这篇关于gcc-11 何时会出现在 Ubuntu 存储库中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆