Eclipse PDT插件安装

时间:2013-08-06 18:13:56

标签: php eclipse eclipse-pdt

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

3 个答案:

答案 0 :(得分:14)

dgolovins的回答对我有用。

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

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

答案 1 :(得分:3)

此消息非常糟糕,意味着您的eclipse安装中没有4.0.0&lt; = version&lt; 5.0.0的org.eclipse.dltk.debug.ui,或者在安装对话框中可以使用eclipse更新站点。< / p>

在eclipse安装对话框中添加Eclipse Dynamic Language Toolkit update site,然后再次尝试安装PDT。

答案 2 :(得分: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开发下。选择两者并单击   “下一步&gt;”。

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. 
     

完成后,您应该可以在a下启动Eclipse   普通用户帐户,然后选择New-&gt; Project ...-&gt; PHP-&gt; PHP Project。