Eclipse PDT插件安装

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]
3个回答

14

3
这条信息很糟糕,意味着您的Eclipse安装中不存在org.eclipse.dltk.debug.ui 4.0.0 <=版本<5.0.0,也不在可用的Eclipse更新站点中。请在Eclipse安装对话框中添加Eclipse动态语言工具包更新站点,然后再尝试安装PDT。

0
在Ubuntu 14.04中,@Manfred提出的解决方案并没有解决我的安装问题。然后我按照PHPeclipse提出的解决方案进行了操作。

Enabling PHP Support

As-standard, Eclipse does not come with support for PHP. This must be added, and added as 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,

another under Web, XML, and Java EE Development. Select both and click "Next >".

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. 

With this complete, you should be able to launch Eclipse under a normal user account and select New->Project...->PHP->PHP Project.


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接