无法在Eclipse Luna中安装CDT

时间:2014-06-27 10:06:11

标签: eclipse eclipse-cdt eclipse-luna

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

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

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

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帐户凭据,我无法在那里发布我的问题。

2 个答案:

答案 0 :(得分:3)

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

答案 1 :(得分:-1)

转到Help > Install new software...

添加以下网址:http://download.eclipse.org/tools/cdt/releases/8.4/并从那里安装CDT。目前市场上CDT的Luna存储库无法正常运行,因此手动方式​​即可。