7

我正在尝试在 Eclipse 中安装 PDT 插件,但出现错误:

Cannot complete the install because one or more required items could not be found.
  Software being installed: PHP Development Tools (PDT) 3.1.2.201212211235 (org.eclipse.php.feature.group 3.1.2.201212211235)
  Missing requirement: PDT Debug UI Plug-in 3.1.2.201212211235 (org.eclipse.php.debug.ui 3.1.2.201212211235) requires 'bundle org.eclipse.dltk.debug.ui [4.0.0,5.0.0)' but it could not be found
  Cannot satisfy dependency:
    From: PHP Development Tools (PDT) 3.1.2.201212211235 (org.eclipse.php.feature.group 3.1.2.201212211235)
    To: org.eclipse.php.debug.ui [3.1.2.201212211235]
4

3 回答 3

14

dgolovins 的回答对我有用。

首先安装Dynamic Language Toolkit:帮助-->安装新软件-->添加-->位置:http: //download.eclipse.org/technology/dltk/updates-dev/4.0-stable/

然后安装PDT:帮助-->安装新软件-->添加-->位置:http: //download.eclipse.org/tools/pdt/updates/latest

于 2013-11-01T18:32:48.453 回答
3

此消息很糟糕,意味着 4.0.0 <= 版本 <5.0.0 的 org.eclipse.dltk.debug.ui 在您的 eclipse 安装中不可用,或者在“安装”对话框中形成可用的 eclipse 更新站点。

在 Eclipse 安装对话框中添加Eclipse Dynamic Language Toolkit 更新站点,然后尝试再次安装 PDT。

于 2013-09-18T22:47:30.497 回答
0

在 Ubuntu 14.04 中,@Manfred 提出的解决方案并没有解决我的安装问题。

然后我按照PHPeclipse中提出的解决方案

启用 PHP 支持

作为标准,Eclipse 不支持 PHP。这必须添加,并以 root 身份添加。

Launch Eclipse as root from the command line:

    $ sudo eclipse (gksudo causes an unusual warning). 

When the "Welcome to Eclipse" screen is displayed, select Help->Install New Software...

The "Galileo" site must be added, click "Add..." and input:

    Name: Galileo Location: http://download.eclipse.org/releases/galileo/ 

Once this is available, select "Galileo" in the Work with: drop-down list.

Enter "php" into the filter text, two entries should be displayed for "PHP Developer Tools (PDT)"; one under Programming Languages,

另一个在 Web、XML 和 Java EE 开发下。选择两者并单击“下一步>”。

Verify that the items you wish to install are displayed on the "Install Details" screen and click "Finish".
Eclipse will need restarted for the update to complete. 

完成后,您应该能够在普通用户帐户下启动 Eclipse 并选择 New->Project...->PHP->PHP Project。

于 2014-12-27T01:23:47.740 回答