您如何从 ubuntu 上的存档/zip 手动安装 eclipse-CDT 插件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1390937/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 18:55:20  来源:igfitidea点击:

How do you manually install the eclipse-CDT plugin from an archive/zip on ubuntu?

linuxeclipseubuntueclipse-cdt

提问by Trevor Boyd Smith

I have successfully installed Eclipse 3.5 and Java 1.5. I would like to install CDT without using Eclipse's "install new features" (nor can i use the Eclipse-CDT installer) option because this computer is offline.

我已经成功安装了 Eclipse 3.5 和 Java 1.5。我想在不使用 Eclipse 的“安装新功能”(我也不能使用 Eclipse-CDT 安装程序)选项的情况下安装 CDT,因为这台计算机处于脱机状态。

What I did:

我做了什么:

  1. I downloaded the archive of cdt from CDT's official download page.
  2. I used file-roller to unzip everything into the eclipse folder (the plugins/features now have a ton of cdtfiles)
  3. I started Eclipse with -clean
  4. When I clicked the New Project. The GUI dialog box did not show C/C++... and there was no C/C++ perspective
  1. 从 CDT 的官方下载页面下载了cdt存档
  2. 我使用 file-roller 将所有内容解压缩到 eclipse 文件夹中(插件/功能现在有大量cdt文件)
  3. 我用 -clean 启动了 Eclipse
  4. 当我单击“新建项目”时。GUI 对话框没有显示 C/C++... 并且没有 C/C++ 透视图

Eclipse appeared to have ignored my unzipping CDT.

Eclipse 似乎忽略了我解压的 CDT。

Have you ever installed CDT using the offline archive?

您是否曾经使用离线存档安装 CDT?

What steps have I missed?

我错过了哪些步骤?

回答by Jungle

On eclipse 3.5, instead of unzipping onto the eclipse folder, try "Help" -> "Install New Software..." then "Add" and instead of typing an update site, choose "Archive". Then follow the instructions.

在 eclipse 3.5 上,不要解压到 eclipse 文件夹,而是尝试“帮助”->“安装新软件...”然后“添加”,而不是键入更新站点,而是选择“存档”。然后按照说明操作。

回答by DigitalRoss

That should have worked. Unzipping on top of the distribution is a more-or-less officially supported installation path. You seem to have confirmed that the files ended up in the right place.

那应该有效。在发行版上解压缩或多或少是官方支持的安装路径。您似乎已确认文件最终位于正确的位置。

It could be that the cdt version doesn't match the Eclipse version.

可能是 cdt 版本与 Eclipse 版本不匹配。

Try Help -> Software Updates..., and see if you can turn a feature on.

尝试Help -> Software Updates...,看看您是否可以打开某个功能。

Try Help -> About Eclipse Platform, then the various info buttons in there, and see if you can find an error or a list of disabled features. Check the enabled list too...

尝试Help -> About Eclipse Platform,然后是其中的各种信息按钮,看看是否可以找到错误或禁用功能的列表。也检查启用列表...

As a last resort you could try removing the contents of the configurationdirectory at the eclipse root. Back it up first, and don't delete config.ini. Restart with -clean.

作为最后的手段,您可以尝试删除configurationeclipse 根目录中的内容。先备份,不要删config.ini。重新启动-clean

回答by kinclong2

On eclipse HELIOS I just put the downloaded .JAR file in C:\eclipse-jee-helios-win32\pluginsand restart eclipse.

在 eclipse HELIOS 上,我只是将下载的 .JAR 文件放入C:\eclipse-jee-helios-win32\plugins并重新启动 eclipse。

Usually the plugin will show up in menu "New/Other" in workspace window.

通常插件会显示在工作区窗口的“新建/其他”菜单中。