【问题标题】:unable to install CDT in Eclipse Luna无法在 Eclipse Luna 中安装 CDT
【发布时间】:2014-08-18 09:49:29
【问题描述】:

我刚刚在他的包Eclipse IDE for Java EE Developers中下载了Eclipse Luna。我想在 C/C++ 中添加Eclipse CDT 编程(我知道我可以下载 CDT 包,但我更喜欢这种方式,请不要提供该选项作为答案)。

当我尝试使用 Marketplace 安装它时,我没有找到 Luna 版本。

如果我使用检索 CDT 8.4.0.201406111759 的 Luna 更新站点,我收到此错误:

An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.eclipse.net4j.jms.api,3.1.100.v20140218-1709

如果我使用 Kepler 更新站点,检索 CDT 8.3.0.201402142303I,我收到此错误:

An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.eclipse.cdt,8.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.codan.checkers,3.2.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.codan.checkers.ui,3.2.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.codan.core,3.2.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.codan.core.cxx,3.2.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.codan.ui,3.2.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.codan.ui.cxx,3.2.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.core,5.6.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.core.linux,5.2.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.core.linux.x86_64,5.2.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.debug.core,7.4.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.debug.mi.core,7.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.debug.mi.ui,6.1.1.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.debug.ui,7.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.doc.user,5.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.dsf,2.4.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.dsf.gdb,4.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.dsf.gdb.ui,2.4.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.dsf.ui,2.4.0.201402142303
No repository found containing: org.eclipse.update.feature,org.eclipse.cdt,8.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.gdb,7.0.0.201402142303
No repository found containing: org.eclipse.update.feature,org.eclipse.cdt.gdb,8.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.gdb.ui,7.0.0.201402142303
No repository found containing: org.eclipse.update.feature,org.eclipse.cdt.gnu.build,8.3.0.201402142303
No repository found containing: org.eclipse.update.feature,org.eclipse.cdt.gnu.debug,8.3.0.201402142303
No repository found containing: org.eclipse.update.feature,org.eclipse.cdt.gnu.dsf,8.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.launch,7.1.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.make.core,7.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.make.ui,7.2.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.managedbuilder.core,8.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.managedbuilder.gnu.ui,8.2.1.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.managedbuilder.ui,8.2.1.201402142303
No repository found containing: org.eclipse.update.feature,org.eclipse.cdt.platform,8.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.ui,5.7.0.201402142303
No repository found containing: binary,org.eclipse.cdt_root,8.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.net4j.jms.api,3.1.100.v20140218-1709

我添加了 Eclipse CDT 8.4 更新站点 (http://download.eclipse.org/tools/cdt/releases/8.4),它检索版本 8.4.0.201406111759,与 Luna 更新站点的版本相同,显然错误是相同的:

An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.eclipse.net4j.jms.api,3.1.100.v20140218-1709

如何在我的 Eclipse Luna 实例中安装 Eclipse CDT?

PD:Eclipse 论坛不接受我的 Eclipse 帐户凭据,我无法在那里发布我的问题。

【问题讨论】:

  • 尝试使用 Luna 更新站点 download.eclipse.org/releases/luna。查看编程语言部分。
  • @greg-449 这是我产生错误的第一个选项,CDT 8.3。
  • 它为我列出了 CDT 8.4
  • @greg-449 你是对的,但我遇到了第二个错误。我将编辑我的答案。谢谢你的提示。
  • 对于 eclipse.org 论坛,请尝试清除该域的所有 cookie,然后重试。

标签: eclipse eclipse-cdt eclipse-luna


【解决方案1】:

最后我解决了这个问题。我使用 Oracle Java 6 来执行 Eclipse。升级到 Oracle Java 8 后,安装过程正确执行。

【讨论】:

    【解决方案2】:

    转到Help > Install new software...

    添加以下 URL:http://download.eclipse.org/tools/cdt/releases/8.4/ 并从那里安装 CDT。 Marketplace 中 CDT 的当前 Luna 存储库无法正常运行,因此手动方式​​是可行的方法。

    【讨论】:

    • 这正是我在最后一个选项中所做的:“我添加了 Eclipse CDT 8.4 更新站点 (download.eclipse.org/tools/cdt/releases/8.4),它检索版本 8.4.0.201406111759,与 Luna 更新站点相同的版本,并且显然错误是一样的:”并且我暴露它失败了。
    • 您可以尝试安装 Eclipse Standard 并从 Marketplace 单独安装所有内容
    • 您最后的评论不符合我的问题。我想继续使用相同的 Eclipse 版本和风格。检查我的答案。
    猜你喜欢
    • 2014-11-09
    • 2015-08-10
    • 1970-01-01
    • 2019-06-09
    • 2015-06-02
    • 1970-01-01
    • 2020-09-01
    • 1970-01-01
    • 2015-07-15
    相关资源
    最近更新 更多