Linux环境下安装Eclipse和CDT插件

上传人:宝路 文档编号:21045227 上传时间:2017-11-23 格式:DOCX 页数:2 大小:16.47KB
返回 下载 相关 举报
Linux环境下安装Eclipse和CDT插件_第1页
第1页 / 共2页
Linux环境下安装Eclipse和CDT插件_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

《Linux环境下安装Eclipse和CDT插件》由会员分享,可在线阅读,更多相关《Linux环境下安装Eclipse和CDT插件(2页珍藏版)》请在金锄头文库上搜索。

1、Linux 环境下安装 Eclipse 和 CDT 插件首先是安装 Eclipse,方法有两种:第一种是通过 Ubuntu 自带的程序安装功能安装 Eclipse,应用程序-Ubtuntu 软件中心,搜 Eclipse 安装即可。第二种方法是用命令:应用程序-附件-终端然后输入(中间可能需要你输入密码):sudo apt-get install eclipsesudo apt-get install eclipse-pdesudo apt-get install eclipse-jdt解释:这个命令是在解决安装 CDT(也就是能编译 C/C+代码的插件)问题时搜到的一个博文里面的,其原文地址为

2、:ubuntu 上使用 eclipse 进行 C/C+代码编译对于第一次接触 Linux 的人说,也许不知道怎么使用命令,或者为什么使用命令。其实我也不是特别清楚,但我想跟系统有关吧,像 Windows 安装软件,都是 exe 格式的,然后双击,下一步下一步就可以,但是 Linux 应该是为了安全考虑或者什么的,需要使用命令来安装。 Ubuntu 算是好的了,安装软件相对而言比较方便。像我刚开始耍的 fedora,安装软件,简直让人崩溃,总是会少点依赖的库。使用命令安装软件,先要打开,终端(相当于 DOS,或者说 Windows 附件里面的命令提示符) ,终端在应用程序-附件- 终端。在终端里

3、面输入密码,不像 Windows 那样,会有显示,比如像*那样的。如果在输入密码的时候,终端无任何符号显示,别担心,其实你刚才输入的都已经在终端上了,只是没有显示而已。继续输就是了,然后按下 Enter 键。注意:使用第一种方法安装时候,在安装 CDT 插件过程中,有可能会出现下面的错误An error occurred while installing the itemssession context was:(profile=PlatformProfile, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.In

4、stall, operand=null Rorg.eclipse.ant.ui 3.4.1.v20090901_r351, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction).The artifact file for osgi.bundle,org.eclipse.ant.ui,3.4.1.v20090901_r351 was not found.我搜了一下,说是 eclipse-pde 或是 eclipse-jdt 没安装上。其说明的网址如下:https:/ apt-g

5、et install eclipse-pdesudo apt-get install eclipse-jdt再安装 CDT 插件,方法如下:1、启动 eclipse,2、选择 Help-Install New Software.,在 Work with 的框框下复制下面的地址: http:/download.eclipse.org/releases/galileo3、选择 Collaboration-Mylyn Bridge: C/C+ Development,安装,重启 eclipse。4、同上述 2、3,选择 Programming Languages-Eclipse C/C+ Devel

6、opment,都选上吧,现在硬盘不贵的。重启 eclipse,试试吧,有 tutorial 的。 注意:在安装 Mylyn Bridge: C/C+ Development,如果直接选择安装 Eclipse C/C+ Development,会出现如下错误:Cannot complete the install because one or more required items could not be found.Software being installed: Mylyn Bridge: C/C+ Development 5.1.0.200909110608 (org.eclipse.

7、cdt.mylyn.feature.group 5.1.0.200909110608)Missing requirement: Mylyn Bridge: C/C+ Development 5.1.0.200909110608 (org.eclipse.cdt.mylyn.feature.group 5.1.0.200909110608) requires org.eclipse.mylyn.context.core 3.0.0 but it could not be found注意:要记得安装 C+必要工具,安装的是 GCC 工具链,Make 等一系列开发工具,命令如下:sudo apt-get install build-essential要不然 include 头文件的时候,会出现提示:Unresolved inclusion: 好了,Ubuntu 下面,安装 Eclipse,同时装 CDT 插件,完美解决了

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 其它办公文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号