Eclipse PDT插件安装


Eclipse PDT plugin installation

我试图在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]

dgolovins的答案对我有效。

首次安装动态语言工具包:帮助-->安装新软件-->添加-->位置:http://download.eclipse.org/technology/dltk/updates-dev/4.0-stable/

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

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

在Eclipse安装对话框中添加Eclipse动态语言工具包更新站点,然后再次尝试安装PDT。

在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. 

完成后,您应该能够在普通用户帐户,然后选择"新建"->"项目…"->PHP->PHP项目。