linux - 在 Linux 上将 Google Plugin for Eclipse 安装到/opt 时出错

标签 linux eclipse installation file-permissions

我正在按照步骤安装位于此处 https://developers.google.com/eclipse/docs/install-eclipse-4.2 的 GPE 4.2(Juno)

我在尝试安装 GPE 时收到以下错误。

Cannot complete the install because one or more required items could not be found. Software being installed: Google Plugin for Eclipse 4.2 3.1.0.v201208080121-rel-r42 (com.google.gdt.eclipse.suite.e42.feature.feature.group 3.1.0.v201208080121-rel-r42) Missing requirement for filter properties ~= $0: Eclipse Platform 4.2.1.v20120814-120134-9JF7BHVGFyMveli1uX6aTH0q-eAap6PAgOP5mO (org.eclipse.platform.feature.group 4.2.1.v20120814-120134-9JF7BHVGFyMveli1uX6aTH0q-eAap6PAgOP5mO) requires 'org.eclipse.core.net.linux.x86 [1.1.200.v20120522-1148]' but it could not be found Cannot satisfy dependency: From: Google Plugin for Eclipse 4.2 3.1.0.v201208080121-rel-r42 (com.google.gdt.eclipse.suite.e42.feature.feature.group 3.1.0.v201208080121-rel-r42) To: org.eclipse.platform.feature.group 3.8.0

我在 linux 64 位系统 (Linux Mint 13) 上为 java EE (Juno) 安装了 eclipse

只有当我尝试使用我安装在/opt 下的 eclipse 实例时才会出现这种情况。我在我的主目录下安装了另一个 eclipse 实例,但没有遇到这个问题。我假设在尝试使用安装在/opt 下的实例时存在导致问题的路径/权限问题。

我应该怎么做才能解决这个问题?我试图符合文件系统层次结构标准。我使用此处发布的说明安装 eclipse http://colinrrobinson.com/technology/install-eclipse-ubuntu/

最佳答案

您需要将插件安装到具有访问/opt 的适当权限的 Eclipse。有两种选择:

  1. 每当您想安装/更新插件时,使用 sudo 启动 Eclipse。
  2. 授予您的用户/组对/opt/的写入权限

我个人使用#2,没有任何问题。

注意:这与 google-plugin-for-eclipse 无关,它只是 Linux 和 Eclipse 安装目录的一般权限问题。

关于linux - 在 Linux 上将 Google Plugin for Eclipse 安装到/opt 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13020541/

相关文章:

linux - 如何使用 bash 获取进程的有效用户名和调度类 - linux

linux - 了解 linux 或 BSD 内核内部结构的最佳方式是什么?

java - 为什么eclipse无法从lib文件夹中检测到jar文件

windows - 为 Visual Studio 项目创建 Windows 安装程序

linux - 如何在Linux中提取文件夹中的部分文件名

linux - 你能在 Linux 上运行 Xcode 吗?

android - 在 Android 中的 Activity 和 Intent 之间传递整数总是导致零/空

Eclipse Juno : How to change background of code folding regions

linux - 如何在 Linux 上从防火墙后面安装 Brackets IDE?

java - 在 Debian 中设置 Java EE 开发环境