为 Eclipse 安装 C# 插件

为 Eclipse 安装 C# 插件

我一直在尝试在我的 Redhat Workstation 上安装 C# IDE 或 C# 编程支持,但没有成功。我无法让 Monodevelop 运行。现在我在 Eclipse 的 emonic 插件安装中遇到这些错误:

An error occurred while collecting items to be installed
session context was:(profile=PlatformProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Unknown Host: http://internap.dl.sourceforge.net/sourceforge/emonic/edu.arizona.cs.mbel2_1.9.0.jar
internap.dl.sourceforge.net
Unknown Host: http://internap.dl.sourceforge.net/sourceforge/emonic/org.emonic.base_0.4.0.jar
internap.dl.sourceforge.net
Unknown Host: http://internap.dl.sourceforge.net/sourceforge/emonic/org.emonic.base.build.ant_0.4.0.jar
internap.dl.sourceforge.net
Unknown Host: http://internap.dl.sourceforge.net/sourceforge/emonic/org.emonic.base.build.csant_0.4.0.jar
internap.dl.sourceforge.net
Unknown Host: http://internap.dl.sourceforge.net/sourceforge/emonic/org.emonic.base.build.msbuild_0.4.0.jar
internap.dl.sourceforge.net
Unknown Host: http://internap.dl.sourceforge.net/sourceforge/emonic/org.emonic.base.build.nant_0.4.0.jar
internap.dl.sourceforge.net
Unknown Host: http://internap.dl.sourceforge.net/sourceforge/emonic/org.emonic.debug.core_0.4.0.jar
internap.dl.sourceforge.net
Unknown Host: http://internap.dl.sourceforge.net/sourceforge/emonic/org.emonic.debug.remote_0.4.0.jar
internap.dl.sourceforge.net
Unknown Host: http://internap.dl.sourceforge.net/sourceforge/emonic/org.emonic.debug.ui_0.4.0.jar
internap.dl.sourceforge.net
Unknown Host: http://internap.dl.sourceforge.net/sourceforge/emonic/org.emonic.debugger_0.4.0.jar
internap.dl.sourceforge.net
Unknown Host: http://internap.dl.sourceforge.net/sourceforge/emonic/org.emonic.monodoc_0.4.0.jar
internap.dl.sourceforge.net

我正在尝试安装这个插件:链接到网站

有人对 RHEL 6.5 Workstation 的 C# 有任何想法吗?

编辑:这是我从第一个答案更改为链接时出现的错误:

`An error occurred while collecting items to be installed
session context was:(profile=PlatformProfile,
phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
action=).
Unknown Host: http://ovh.dl.sourceforge.net/sourceforge/emonic
/edu.arizona.cs.mbel2_1.9.0.jar
ovh.dl.sourceforge.net
Unknown Host: http://ovh.dl.sourceforge.net/sourceforge/emonic
/org.emonic.base_0.4.0.jar
ovh.dl.sourceforge.net
Unknown Host: http://ovh.dl.sourceforge.net/sourceforge/emonic
/org.emonic.base.build.ant_0.4.0.jar
ovh.dl.sourceforge.net
Unknown Host: http://ovh.dl.sourceforge.net/sourceforge/emonic
/org.emonic.base.build.csant_0.4.0.jar
ovh.dl.sourceforge.net
Unknown Host: http://ovh.dl.sourceforge.net/sourceforge/emonic
/org.emonic.base.build.msbuild_0.4.0.jar
ovh.dl.sourceforge.net
Unknown Host: http://ovh.dl.sourceforge.net/sourceforge/emonic
/org.emonic.base.build.nant_0.4.0.jar
ovh.dl.sourceforge.net
Unknown Host: http://ovh.dl.sourceforge.net/sourceforge/emonic
/org.emonic.debug.core_0.4.0.jar
ovh.dl.sourceforge.net
Unknown Host: http://ovh.dl.sourceforge.net/sourceforge/emonic
/org.emonic.debug.remote_0.4.0.jar
ovh.dl.sourceforge.net
Unknown Host: http://ovh.dl.sourceforge.net/sourceforge/emonic
/org.emonic.debug.ui_0.4.0.jar
ovh.dl.sourceforge.net
Unknown Host: http://ovh.dl.sourceforge.net/sourceforge/emonic
/org.emonic.debugger_0.4.0.jar
ovh.dl.sourceforge.net
Unknown Host: http://ovh.dl.sourceforge.net/sourceforge/emonic
/org.emonic.monodoc_0.4.0.jar
ovh.dl.sourceforge.net`

答案1

我不知道你从哪里得到这些链接/主机,但它们已经死了。尝试将它们替换为包含在通过更新站点下载部分:

将以下更新站点之一添加到您的 Exlipse 更新配置中(菜单:帮助 -> 软件更新 -> 查找并安装)

我测试了这些,工作得很好。


发现问题,这些 XML 文件包含指向第三方网站的链接,这些网站有时是 SourceForge 的镜像。显然,唯一的方法是使用另一种方式并手动下载软件包并将它们放入正确的目录中。

只需将文件解压到 Eclipse 安装目录 (/usr/share/eclipse/dropins) 就可以了。

相关内容