Linux 如何为 Eclipse 安装 CDT

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4622982/
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-08-05 02:24:00  来源:igfitidea点击:

how to install CDT for eclipse

linuxeclipse

提问by pradeep

i have installed eclipse on ubuntu 10.04,i want to run C and C++ program, what is the commant to install CDT for it, i have installed eclipse Galileo, i tried help -> install new softwares and added this link http://download.eclipse.org/tools/cdt/releases/galileobut it shows no repository , please help...

我已经在 ubuntu 10.04 上安装了 eclipse,我想运行 C 和 C++ 程序,为它安装 CDT 的命令是什么,我已经安装了 eclipse Galileo,我尝试了帮助 -> 安装新软件并添加了这个链接http://download .eclipse.org/tools/cdt/releases/galileo但它没有显示存储库,请帮助...

回答by J-16 SDiZ

  1. don't use the eclipse from ubuntu -- it is out dated

  2. download from eclipse.org directly, choose the cdtone

  1. 不要使用来自 ubuntu 的 eclipse——它已经过时了

  2. 直接从eclipse.org下载,选择cdt之一

回答by Rizvi Hasan

To install Eclipse CDT in Ubuntu just type these command in terminal

要在 Ubuntu 中安装 Eclipse CDT,只需在终端中键入这些命令

sudo apt-get install eclipse-cdt

Assuming that you have a Ubuntu installed with internet connection.

假设您安装了具有 Internet 连接的 Ubuntu。

回答by NIhal

Just press Alt+Cnt+T and type sudo apt-get install eclipse-cdt this is only when you have already eclipse installed in Ubuntu.

只需按 Alt+Cnt+T 并键入 sudo apt-get install eclipse-cdt 这仅当您已经在 Ubuntu 中安装了 eclipse 时。

回答by Sumit Pokhrel

  1. Install Eclipse from the Ubuntu repositories.
  2. Go to terminal and type the following command : sudo apt-get install eclipse eclipse-cdt g++
  1. 从 Ubuntu 存储库安装 Eclipse。
  2. 转到终端并输入以下命令:sudo apt-get install eclipse eclipse-cdt g++