如何在 Ubuntu 16.04 中安装 Eclipse C++ IDE?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/40991672/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 23:20:40  来源:igfitidea点击:

How to install Eclipse C++ IDE in Ubuntu 16.04?

c++eclipseubuntu

提问by Agaz Hussain

I would like to install the latest eclipse C++ IDE on Ubuntu 16.04. I tried by

我想在 Ubuntu 16.04 上安装最新的 Eclipse C++ IDE。我试过

sudo apt-get install eclipse eclipse-cdt g++

But unfortunately this installs the old version.

但不幸的是,这会安装旧版本。

I also looked by installing from Ubuntu software center, failed by installing the old eclipse version. I am left with the option of downloading the bundle from official site. However, the download is very slow.

我还通过从 Ubuntu 软件中心安装来查看,安装旧的 eclipse 版本失败了。我可以选择从官方网站下载捆绑包。但是,下载速度非常慢。

Would be happy to know the installation of latest version.

很高兴知道最新版本的安装。

回答by Fedeco

Download the debian or tar.gz package from the original site and click two times on it to install, now in latest ubuntu it should auto-detect it as an installation package.
For your internet speed We can't do nothing, or you just wait the time it just needs to download it or you try to install the linux download from Official website. Are you using facebook/skype/ p2p or torrent programs? they slowdown a lot your internet speed.

从原始站点下载 debian 或 tar.gz 包并单击它两次进行安装,现在在最新的 ubuntu 中它应该自动将其检测为安装包。
为了您的网速我们无能为力,或者您只是等待它需要下载它的时间,或者您尝试安装从官方网站下载的linux。您使用的是 facebook/skype/p2p 或 torrent 程序吗?它们会大大降低您的互联网速度。

回答by Fooo

You can simply download the cdt files from here :

您可以简单地从这里下载 cdt 文件:

 https://launchpad.net/ubuntu/+source/eclipse-cdt/8.6.0-1

Extract & launch the binary eclipse ( eclipse& )

提取并启动二进制 eclipse ( eclipse& )

This should help

这应该有帮助

回答by parasrish

 sudo apt install -y eclipse-cdt-*

More details here.

更多细节在这里

回答by CaTx

Do not install eclipse from with sudo apt-get (as of Oct 13th 2017). It will get you the old version, which will clash with the new 3.4.7 version if you install that. Gave me too much headache. Download the tar.gz of the new version online, then run the installer from the unpacked folder.

不要使用 sudo apt-get 安装 eclipse(截至 2017 年 10 月 13 日)。它将为您提供旧版本,如果您安装它,它将与新的 3.4.7 版本发生冲突。让我太头疼了。在线下载新版本的tar.gz,然后从解压后的文件夹中运行安装程序。