【问题标题】:Error when installing Google Plugin for Eclipse into /opt on Linux在 Linux 上将 Google Plugin for Eclipse 安装到 /opt 时出错
【发布时间】:2012-10-12 19:12:47
【问题描述】:

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

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

无法完成安装,因为一个或多个必需项可能 找不到。正在安装的软件: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) 缺少过滤器属性要求 ~= $0:Eclipse 平台 4.2.1.v20120814-120134-9JF7BHVGFyMveli1uX6aTH0q-eAap6PAgOP5mO(org.eclipse.platform.feature.group 4.2.1.v20120814-120134-9JF7BHVGFyMveli1uX6aTH0q-eAap6PAgOP5mO) 需要'org.eclipse.core.net.linux.x86 [1.1.200.v20120522-1148]'但是 找不到不能满足依赖: 来自: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) 至: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/

【问题讨论】:

  • 我以 root 身份启动了 eclipse,并且能够为 eclipse 安装 google 插件。我希望我可以将插件安装到 ~/.eclipse,但我从阅读这里看到 wiki.archlinux.org/index.php/Eclipse 这可能不是最佳实践。

标签: linux eclipse installation file-permissions


【解决方案1】:

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

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

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-08-14
    相关资源
    最近更新 更多