【问题标题】:Installing Eclipse with C++ for scientific linux使用 C++ 为科学 Linux 安装 Eclipse
【发布时间】:2015-02-21 21:44:05
【问题描述】:

不久前,我在这台科学的 linux 机器上安装了 Eclipse。但是当我转到 Windows -> Preferences 时,我没有看到列出的 C++。然后我去了帮助-> 安装新软件-> 使用-> Eclipse Juno 存储库,只检查了“C/C++ 开发工具”。然后我收到消息“操作无法完成”,并在详细信息下显示

Cannot complete the install because of a conflicting dependency. Software being installed: C/C++ Development Tools 8.1.2.201302132326 (org.eclipse.cdt.feature.group 8.1.2.201302132326) Software currently installed: Shared profile 1.0.0.1306272994665 (SharedProfile_PlatformProfile 1.0.0.1306272994665) Only one of the following can be installed at once: Debug Core 3.7.100.v20120521-2012 (org.eclipse.debug.core 3.7.100.v20120521-2012) Debug Core 3.6.0.v20100519 (org.eclipse.debug.core 3.6.0.v20100519) Cannot satisfy dependency: From: Shared profile 1.0.0.1306272994665 (SharedProfile_PlatformProfile 1.0.0.1306272994665) To: org.eclipse.debug.core [3.6.0.v20100519] Cannot satisfy dependency: From: C/C++ Development Tools Debugger UI 7.2.0.201302132326 (org.eclipse.cdt.debug.ui 7.2.0.201302132326) To: bundle org.eclipse.debug.core [3.7.0,4.0.0)"

我该如何解决这个问题?还有其他我可以在 Eclipse 中使用 C++ 的吗?

【问题讨论】:

  • 您不需要 Eclipse 来使用 C++ 编写代码。许多非常优秀的 C++ 程序员正在使用更好更简单的工具(emacs,make,git,g++,gdb ....)
  • 我正在处理一个我的同事都不了解的庞大代码库,而且看似无害的小改动会导致崩溃。我已经花了大约一个月的时间来调试这个,gdb 并没有多大帮助。我已经使用makeCMakeFiles
  • 如果你真的想用IDE,可以考虑Qt Creator。此外,您可能会发现this thread on Reddit 很有趣。
  • 作为一个例子,GCC 是一个大型的 C++ 代码库(超过一千万行),我知道没有人使用 Eclispe 来处理它。
  • 我在安装 Qt creator 时也遇到了困难?我应该尝试其他类似 KDevelop 的方法吗?

标签: c++ linux eclipse


【解决方案1】:

您应该能够使用您的分发存储库安装 CDT 插件。

sudo yum install eclipse-cdt

【讨论】:

  • 尝试收到user is not allowed to execute usr/bin/yum install eclipse-cdt as root的消息
  • 该消息意味着您需要额外的权限才能执行 yum。请您的管理员为您执行该命令或将您添加为 sudoer。
  • 说“没有可用的包 eclipse-cdt。”在 SL7.1 上。
猜你喜欢
  • 1970-01-01
  • 2016-10-31
  • 1970-01-01
  • 1970-01-01
  • 2018-05-27
  • 2015-11-30
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多