使用C++为科学linux安装Eclipse

Installing Eclipse with C++ for scientific linux

本文关键字:linux 安装 Eclipse C++ 使用      更新时间:2023-10-16

我不久前在这台科学linux机器上安装了Eclipse。但是当我进入Windows->Preferences时,我看不到列出的C++。然后我转到帮助->安装新的SOftware->WOrk with->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++的吗?

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

sudo yum install eclipse-cdt