在ubuntu中安装eclipse php

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1420989/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 02:30:44  来源:igfitidea点击:

Installation of eclipse php in ubuntu

phpeclipseubuntueclipse-plugininstall

提问by ArK

How to install eclipse php in ubuntuplatform using apt get install. Any other utilities are required to do that

如何使用apt get install在 ubuntu平台上安装 eclipse php。任何其他实用程序都需要这样做

回答by Pascal MARTIN

The simplest solution, which will allow you to have the latest version, would be to :

允许您拥有最新版本的最简单的解决方案是:

  • go to http://eclipse.org/pdt/
  • download the lastest version (icon on the right)
  • Choose the "PDT 2.1 All In Ones / Eclipse PHP Package" package that's OK for you : Linux x86, 32 or 64 bits
  • download that package
  • unzip it
  • and voila, you can run Eclipse PDT
  • http://eclipse.org/pdt/
  • 下载最新版本(右侧图标)
  • 选择适合您的“PDT 2.1 All In Ones / Eclipse PHP Package”软件包:Linux x86、32 或 64 位
  • 下载那个包
  • 解压
  • 瞧,您可以运行 Eclipse PDT

Advantages :

好处 :

  • last version
  • doesn't require root privileges
  • 最新版本
  • 不需要root权限

I'm always using this solution, because new versions of Eclipse PDT generally bring nice enhancements, and are not integrated on the Ubuntu repositories before a long time passes... And I've never had any problem with this solution.

我一直在使用这个解决方案,因为新版本的 Eclipse PDT 通常会带来很好的增强,并且在很长一段时间内都没有集成到 Ubuntu 存储库中......而且我从来没有遇到过这个解决方案的任何问题。

回答by Pascal Thivent

Don't! Don't use apt-get for Eclipse. Instead, follow these stepsto install it "manually".

别!不要将 apt-get 用于 Eclipse。相反,请按照以下步骤“手动”安装它。

回答by Peter Krauss

I think there are the SIMPLEST one for UBUNTU 10+ ... and I have problems with the other "handmade methods" answered here.

我认为 UBUNTU 10+ 有最简单的一个......我对这里回答的其他“手工制作方法”有问题。

SEE https://help.ubuntu.com/community/PHPEclipseor https://help.ubuntu.com/community/EclipsePDT

参见https://help.ubuntu.com/community/PHPEclipsehttps://help.ubuntu.com/community/EclipsePDT

  1. Use "software centre" or Synaptic to install Eclipse... or apt-get.

  2. Run Eclipse and use the Help/Add to add the PHP-Eclipse (PDT) package.

  1. 使用“软件中心”或 Synaptic 安装 Eclipse... 或 apt-get。

  2. 运行 Eclipse 并使用 Help/Add 添加 PHP-Eclipse (PDT) 包。

(Pascal's answer says "Don't use apt-get" but I say) UBUNTU supports and I recommend: USE IT, use apt-get! Is faster, simple and secure!

(Pascal 的回答说“不要使用 apt-get”,但我说)UBUNTU 支持,我建议:使用它,使用apt-get! 更快、更简单、更安全!

PS: "PDT - PHP Development Tool" is the official name for "Eclipse-PHP".

PS:“PDT-PHP 开发工具”是“Eclipse-PHP”的正式名称。



DETAILED INSTALLATION

详细安装

NOTE: On Ubuntu 10+ this method will install Eclipse 3.5+ (Galileo) and PDT 2.1+. If you have problems or want "lower risk to re-do", run, at the second step bellow, the Eclipse with root, $sudo eclipse

注意:在 Ubuntu 10+ 上,此方法将安装 Eclipse 3.5+ (Galileo) 和 PDT 2.1+。如果您有问题或想要“降低重新执行的风险”,请在下面的第二步中使用 root 运行 Eclipse, $sudo eclipse

  1. Install Eclipse: Open Synaptic Package Manager (System/Administration/Synaptic Package Manager), Find the package "eclipse" and mark it for installation, Click Apply.

  2. Install PHP Development Tools (PDT): Open Eclipse (you must specify your workspace); ignore the "Welcome to Eclipse" screen is displayed, select menu 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.
  1. 安装Eclipse:打开Synaptic Package Manager(系统/管理/Synaptic Package Manager),找到包“eclipse”并标记为安装,点击Apply。

  2. 安装 PHP 开发工具(PDT):打开 Eclipse(你必须指定你的工作空间);忽略显示的“欢迎使用 Eclipse”屏幕,选择菜单帮助/安装新软件...

    • 必须添加“伽利略”站点,单击“添加...”并输入:
    • 名称:伽利略   位置http: //download.eclipse.org/releases/galileo/
    • 一旦可用,请在 Work with: 下拉列表中选择“Galileo”。
    • 在过滤器文本中输入“php”,“PHP Developer Tools (PDT)”应显示两个条目;一个在编程语言下,另一个在 Web、XML 和 Java EE 开发下。选择两者并单击“下一步”。
    • 确认您要安装的项目显示在“安装详细信息”屏幕上,然后单击“完成”。
    • Eclipse 需要重新启动才能完成更新。