Skip to main content
Jump to: navigation, search

Difference between revisions of "PDT/Installation"

< PDT
m (From Update Site)
 
(79 intermediate revisions by 20 users not shown)
Line 1: Line 1:
Installing PDT is relatively easy.  
+
Installing PDT is relatively easy.
  
 
== Install a JVM ==
 
== Install a JVM ==
 +
Regardless of your operating system, you will need to install a Java virtual machine.
 +
* If using Windows, you may already have one installed, but upgrading won't hurt.
 +
* If using Linux, [[IRC_FAQ#I_just_installed_Eclipse_on_Linux.2C_but_it_does_not_start._What_is_the_problem.3F | read this]] -- GCJ will '''NOT''' work.
 +
Consider an [http://www.ibm.com/developerworks/java/jdk/index.html IBM JDK] or a [http://java.sun.com/javase/downloads/index.jsp Sun JDK]. See below for minimum requirements. Note that if you are on a 64-bit platform and are using a 64-bit JRE, you need to use a [http://download.eclipse.org/eclipse/downloads/ 64-bit Eclipse build].
  
* Regardless of your operating system, you will need to install some Java virtual machine.
+
== Latest stable release ==
:* If using Windows, you may already have one installed, but upgrading won't hurt.
+
:* If using Linux, [[IRC_FAQ#I_just_installed_Eclipse_on_Linux.2C_but_it_does_not_start._What_is_the_problem.3F | read this]] -- GCJ will '''NOT''' work.
+
* Consider an [http://www.ibm.com/developerworks/java/jdk/index.html IBM JDK] or a [http://java.sun.com/javase/downloads/index.jsp Sun JDK]. See below for minimum requirements.
+
  
== Eclipse 3.4 / Ganymede / PDT 2.0 ==
+
=== Marketplace ===
  
<blockquote><table style="border: 1px red dashed; padding:10px"><tr><td>'''''This information is preliminary and subject to change.'''''</td></tr></table></blockquote>
+
Install PHP Development Tools from [https://marketplace.eclipse.org/content/php-development-tools Marketplace]
 +
 
 +
=== Update Site ===
 +
 
 +
Latest stable release is always available under following Eclipse update site:
 +
 
 +
http://download.eclipse.org/tools/pdt/updates/latest
 +
 
 +
Please use use [http://help.eclipse.org/luna/index.jsp?topic=/org.eclipse.platform.doc.user/tasks/tasks-127.htm this article] howto add update site to your Eclipse installation.
 +
 
 +
== Eclipse 4.7.2 / Oxygen.2 / PDT 5.2.0 ==
 +
 
 +
* Download PHP EPP package from [https://www.eclipse.org/downloads/packages/eclipse-php-developers/oxygen2 Eclipse Downloads page]
 +
* or install PHP Development Tools via Help > Install new software
 +
* or via update site http://download.eclipse.org/tools/pdt/updates/5.2/
 +
 
 +
== Eclipse 4.7.0 / Oxygen.0 / PDT 5.0.0 ==
 +
 
 +
* Download PHP EPP package from [https://www.eclipse.org/downloads/packages/eclipse-php-developers/oxygenr Eclipse Downloads page]
 +
* or via update site http://download.eclipse.org/tools/pdt/updates/5.0/
 +
 
 +
== Eclipse 4.6.3 / Neon.3 / PDT 4.3.0 ==
 +
 
 +
* Download PHP EPP package from [https://www.eclipse.org/downloads/packages/eclipse-php-developers/neon1 Eclipse Downloads page]
 +
* or install PHP Development Tools via Help > Install new software
 +
* or via update site http://download.eclipse.org/tools/pdt/updates/4.3/
 +
 
 +
== Eclipse 4.6.1 / Neon.1 / PDT 4.1.0 ==
 +
 
 +
* Download PHP EPP package from [https://www.eclipse.org/downloads/packages/eclipse-php-developers/neon1 Eclipse Downloads page]
 +
* or install PHP Development Tools via Help > Install new software
 +
* or via update site http://download.eclipse.org/tools/pdt/updates/4.1/
 +
 
 +
== Eclipse 4.6.0 / Neon.0 / PDT 4.0.1 ==
 +
 
 +
* Install PHP Development Tools from Marketplace
 +
* or via update site http://download.eclipse.org/tools/pdt/updates/4.0.1/
 +
 
 +
== Eclipse 4.6.0 / Neon.0 / PDT 4.0.0 ==
 +
 
 +
* Download PHP EPP package from [https://www.eclipse.org/downloads/packages/eclipse-php-developers/neonr Eclipse Downloads page]
 +
* or install PHP Development Tools via Help > Install new software
 +
* or via update site http://download.eclipse.org/tools/pdt/updates/4.0/
 +
 
 +
== Eclipse 4.5.2 / Mars.2 / PDT 3.7.0 ==
 +
 
 +
* Download PHP EPP package from [https://www.eclipse.org/downloads/packages/eclipse-php-developers/mars2 Eclipse Downloads page]
 +
* or install PHP Development Tools via Help > Install new software
 +
* or via update site http://download.eclipse.org/tools/pdt/updates/3.7/
 +
 
 +
== Eclipse 4.5.1 / Mars.1 / PDT 3.6.0 ==
 +
 
 +
* Download PHP EPP package from [https://www.eclipse.org/downloads/packages/eclipse-php-developers/mars1 Eclipse Downloads page]
 +
* or install PHP Development Tools via Help > Install new software
 +
* or via update site http://download.eclipse.org/tools/pdt/updates/3.6/
 +
 
 +
== Eclipse 4.5 / Mars / PDT 3.5.0 ==
 +
 
 +
* Download PHP EPP package from [https://www.eclipse.org/downloads/packages/eclipse-php-developers/marsr Eclipse Downloads page]
 +
* or install PHP Development Tools via Help > Install new software
 +
* or via update site http://download.eclipse.org/tools/pdt/updates/3.5/
 +
 
 +
== Eclipse 4.4 / Luna / PDT 3.4.0 ==
 +
 
 +
* Download PHP EPP package from [https://www.eclipse.org/downloads/packages/eclipse-php-developers/lunasr2 Eclipse Downloads page]
 +
* or install PHP Development Tools via Help > Install new software
 +
 
 +
== Eclipse 4.2 / Juno / PDT 3.1.1 ==
 +
[[PDT/Installation 3.1.1]]
 +
 
 +
== Eclipse 3.7 / Indigo / PDT 3.0 ==
  
 
=== From Update Site ===
 
=== From Update Site ===
  
* [[#Install a JVM | Install a JDK or JRE]] -- minimum required level is 5.0.
+
==== Prerequisites ====
  
* Get Eclipse:
+
* Installed and running Eclipse Classic 3.7
:* Download an [http://download.eclipse.org/eclipse/downloads/ Eclipse SDK or Runtime Binary] or the latest [http://www.eclipse.org/downloads/ Ganymede JEE Bundle], then unpack it and [[IRC_FAQ#How_do_I_start_Eclipse.3F | start it up]].
+
  
* Download the latest [http://download.eclipse.org/technology/dltk/downloads/ DLTK Core Frameworks 1.0 Integration build], eg. [http://download.eclipse.org/technology/dltk/downloads/drops/R1.0/I-I200807291021-200807291021/dltk-core-I-I200807291021-200807291021-incubation.zip dltk-core-*-incubation.zip]. Unpack the zip somewhere.
+
The minimum package is Eclipse Platform Runtime Binary. It is available at [http://download.eclipse.org/eclipse/downloads/drops/R-3.7-201106131736/index.php#PlatformRuntime here]<br>
 +
Any packages in [http://www.eclipse.org/downloads/ Eclipse Downloads page] are available also.
  
{{codeblock|<nowiki>dltk=$(find . -name "dltk-core-*-incubation.zip"); unzip -qq -d ${dltk}_ ${dltk}</nowiki>}}
+
==== Installation Flow ====
   
+
 
* Download the latest [http://download.eclipse.org/tools/pdt/downloads/ PDT 2.0 build]. Unpack the zip somewhere.
+
* Open Help -&gt; Install New Software.  
 +
* Select the Indigo update site.
 +
* When the list of existing features is populated - select 'PHP Development Tools'.
 +
* Make sure 'Contact all update sites...' is checked.
 +
 
 +
[[Image:Indigo_Install.png]]
 +
 
 +
* Proceed with the installation by pressing 'Next', then press 'Next' again in the next screen.
 +
* Accept the EULA when asked:
 +
* Finish the installation. Restart Eclipse.
 +
* After restarting switch to the PHP perspective, and you are done:
 +
 
 +
==== Additional Installation ====
 +
 
 +
If you need Mylyn features,
 +
* Help -> Install New Software
 +
* Select Indigo
 +
* Expand 'Collaboration'
 +
* Check following features (some other features will be installed automatically because of dependencies)
 +
** Mylyn Context Connector: Eclipse IDE
 +
** Mylyn Tasks Connector: Bugzilla
 +
** Mylyn WikiText
 +
* Proceed installation
 +
 
 +
If you need RSE(Remote System Explorer) features,
 +
* Help -> Install New Software
 +
* Select Indigo
 +
* Expand 'Mobile and Device Development'
 +
* Check following feature (some other features will be installed automatically because of dependencies)
 +
** Remote System Explorer End-User Runtime
 +
* Proceed installation
 +
 
 +
If you need Eclipse Marketplace feature,
 +
* Help -> Install New Software
 +
* Select Indigo
 +
* Expand 'General Purpose Tools'
 +
* Check following feature (some other features will be installed automatically because of dependencies)
 +
** Marketplace Client
 +
* Proceed installation
 +
 
 +
==== If You Are ====
 +
 
 +
* Using Windows Vista/7
 +
** Do not pair 32bit Eclipse and 64bit JRE/JDK or vice versa. Use 32bit Eclipse on 32bit JRE/JDK, or 64bit Eclipse on 64bit JRE/JDK.
 +
** Do not install Eclipse under 'Program Files' or 'Program Files(x86)' folder.
 +
 
 +
* Using Linux distro
 +
** Make sure [http://www.eclipse.org/swt/faq.php#browserlinux SWT requirements] if you have troubles with Content Assist or Internal Web Browser.
 +
*** CSS styles appear in Content Assist Information.
 +
*** Internal Web Browser is unavailable (cannot be opened or such).
 +
 
 +
 
 +
== Eclipse 3.6 / Helios / PDT 2.2  ==
 +
Note: PDT 2.2 is scheduled for release in June 2010.  This will install a recent development snapshot, not the final 2.2.0 release.
 +
 
 +
=== From Update Site  ===
 +
 
 +
==== Prerequisites  ====
 +
 
 +
*Installed and running Eclipse Classic 3.6
 +
 
 +
==== Installation Flow  ====
 +
 
 +
 
 +
* Open Help-&gt;Install New Software.
 +
 
 +
* <p>Add the Helios update site: http://download.eclipse.org/releases/helios/ <br /> NB! There are some ugly bugs in PDT 2.2 in particular [https://bugs.eclipse.org/bugs/show_bug.cgi?id=326194 when comparing files] so you might consider adding http://download.eclipse.org/tools/pdt/updates/2.2/milestones as the update site instead of the Helios one.</p>
 +
 
 +
* Select the Helios update site and choose Eclipse PDT . When the list of existing features is populated - select 'Runtime' feature:
 +
 
 +
[[Image:Helios_site.PNG]]
 +
 
 +
*Proceed with the installation by pressing 'Next', then press 'Next' again in the next screen.
 +
*Accept the EULA when asked:
 +
 
 +
[[Image:PDT_2_2_Accept_EULA.png]]
 +
 
 +
*Finish the installation. Restart Eclipse.
 +
*After restarting switch to the PHP perspective, and you are done:
 +
 
 +
[[Image:PDT_2_2_Switch_Perspective.png]]
 +
 
 +
=== From Zips  ===
 +
 
 +
*[[#Install_a_JVM|Install a JDK or JRE]] -- the minimum required version is 5.0.
 +
 
 +
*Download the latest [http://download.eclipse.org/tools/pdt/downloads/ PDT 2.2 Runtime] + all its listed build dependencies, including Eclipse.
 +
 
 +
*Unpack Eclipse, then unpack everything else into your eclipse/dropins/ folder.
 +
 
 +
*Download [http://www.eclipse.org/downloads/download.php?file=/technology/dltk/externals/org.h2_1.1.117.jar H2 Database plug-in], then put it into your eclipse/dropins/ folder.
 +
 
 +
*Run the Eclipse executable file.
 +
 
 +
== Eclipse 3.5 / Galileo / PDT 2.1 ==
 +
 
 +
=== From All-In-One Package ===
 +
 
 +
* [[#Install a JVM | Install a JDK or JRE]] -- the minimum required version is 5.0.
 +
 
 +
* Go to the [http://eclipse.org/downloads/ Eclipse downloads page] and select the [http://eclipse.org/downloads/packages/eclipse-php-developers/galileor Eclipse for PHP Developers] bundle for your OS.
 +
:* ''If your OS is not available, download the [http://download.eclipse.org/eclipse/downloads/ Eclipse 'Classic' SDK or Platform Runtime Binary], [http://download.eclipse.org/eclipse/downloads/drops/R-3.5-200906111540/index.php#PlatformRuntime version 3.5] or later. Then see the section on installing from Update Site below.''
 +
 
 +
* Unpack the archive file you've downloaded into the directory in which you want to install PDT.
 +
 
 +
* Run the Eclipse executable file. Start having fun in PHP world.
 +
 
 +
=== From Update Site (or Update Site Zip) ===
 +
 
 +
* [[#Install a JVM | Install a JDK or JRE]] -- the minimum required version is 5.0.
 +
 
 +
* Get Eclipse:
 +
:* Download the latest [http://www.eclipse.org/downloads/ Galileo JEE Bundle] (or [http://download.eclipse.org/eclipse/downloads/ 'Classic' SDK or Platform Runtime Binary], or any other bundle that suits your needs), then unpack it and [[IRC_FAQ#How_do_I_start_Eclipse.3F | start it up]].
  
{{codeblock|<nowiki>pdt=$(find . -name "org.eclipse.php_feature-*.zip"); unzip -qq -d ${pdt}_ ${pdt}</nowiki>}}
 
 
 
* Start the Install Manager.
 
* Start the Install Manager.
 +
 +
* If you downloaded a PDT Update zip:
 +
 
{{codeblock|
 
{{codeblock|
  Help > Software Updates... > Available Software
+
  Help > Install New Software...  
   Add Site... > ''add the Ganymede Update site (if not already listed): http://download.eclipse.org/releases/ganymede/''
+
   [x] Contact all update sites during install to find required software
   Add Site... > Local > ''add the unpacked folder: .../dltk-core-*-incubation.zip_''
+
   Add... > Archive... > Browse for the PDT Update zip
  Add Site... > Local > ''add the unpacked folder: .../org.eclipse.php_feature-*.zip_''
+
   Select the '''PDT''' or '''PDT SDK''' Feature
  Press "Refresh"
+
   Select the '''Dynamic Languages Toolkit - Core Frameworks''' Feature
+
  Select the '''PDT''' Feature
+
 
   Install...
 
   Install...
 
}}
 
}}
  
[[Image:Pdt-install-p2.png]]
+
* You can also install PDT from the Galileo Update site:
  
* Install. Restart. Enjoy.
+
{{codeblock|
 +
Help > Install New Software...
 +
  Select the Galileo Update site
 +
  Select the '''PDT''' or '''PDT SDK''' Feature
 +
  Install...
 +
}}
 +
 
 +
* Install. Restart Eclipse. Enjoy.
 +
 
 +
== Eclipse 3.4 / Ganymede / PDT 2.0 ==
 +
 
 +
=== From All-In-One Package ===
 +
 
 +
* [[#Install a JVM | Install a JDK or JRE]] -- the minimum required version is 5.0.
 +
 
 +
* Go to the [http://www.eclipse.org/pdt/downloads/ PDT download page]
 +
 
 +
* Download the latest All-In-One package that is compatible with your OS.
 +
:* This archive file includes the Eclipse environment, PDT and all the required dependencies you need to start developing using PDT.
 +
 
 +
* Unpack the archive file you've downloaded into the directory in which you want to install PDT.
 +
 
 +
* Run the Eclipse executable file. Start having fun in PHP world.
 +
 
 +
=== From Update Site ===
 +
 
 +
* [[#Install a JVM | Install a JDK or JRE]] -- the minimum required version is 5.0.
 +
 
 +
* Get Eclipse:
 +
:* Download the latest [http://www.eclipse.org/downloads/ Ganymede JEE Bundle], then unpack it and [[IRC_FAQ#How_do_I_start_Eclipse.3F | start it up]].
 +
 
 +
* Start the Install Manager. You will require three update sites to perform an install of PDT 2.0.
 +
{{codeblock|
 +
Help > Software Updates... > Available Software > Manage Sites...
 +
  Add... > ''add the DLTK 1.0 interim site:'' [http://download.eclipse.org/technology/dltk/updates-dev/1.0M4-PDT-2.0/ download.eclipse.org/technology/dltk/updates-dev/1.0M4-PDT-2.0/]
 +
  Add... > ''add the PDT 2.0 interim site:'' [http://download.eclipse.org/tools/pdt/updates/2.0/ download.eclipse.org/tools/pdt/updates/2.0/]
 +
  Enable the Ganymede Update site (if not already enabled): [http://download.eclipse.org/releases/ganymede/ download.eclipse.org/releases/ganymede/]''
 +
  Expand the DLTK site and select the '''Dynamic Languages Toolkit - Core Frameworks''' or '''Dynamic Languages Toolkit - Core Frameworks SDK''' Feature
 +
  Select the '''PDT''' or '''PDT SDK''' Feature
 +
  Install...
 +
}}
 +
 
 +
[[Image:Pdt-install-p2.png]]
 +
 
 +
* Install. Restart Eclipse. Enjoy.
  
 
=== From Zips ===
 
=== From Zips ===
  
* [[#Install a JVM | Install a JDK or JRE]] -- minimum required level is 5.0.
+
* [[#Install a JVM | Install a JDK or JRE]] -- the minimum required version is 5.0.
  
 
* Download the latest [http://download.eclipse.org/tools/pdt/downloads/ PDT 2.0 build] + all its listed dependencies, including Eclipse.  
 
* Download the latest [http://download.eclipse.org/tools/pdt/downloads/ PDT 2.0 build] + all its listed dependencies, including Eclipse.  
  
* Save this script as <code>pdt.sh</code>. The first time, run it like this to create a clean PDT install: <code>./pdt.sh clean</code>; on subsequent restarts, just run <code>./pdt.sh</code>
+
* Unpack Eclipse, then unpack everything else into your eclipse/dropins/ folder.  
{{codeblock|<nowiki>
+
 
#!/bin/bash
+
* Run the Eclipse executable file.
vm=/opt/sun-java2-5.0/bin/java
+
eclipse=eclipse-SDK-3.4-linux-gtk.tar.gz
+
workspace=~/eclipse/pdt-dev/workspace
+
+
pushd ~/eclipse/pdt-dev >/dev/null
+
if [[ $1 == "clean" ]]; then
+
  rm -fr eclipse;
+
  echo "Unpack $eclipse..."; tar xzf $eclipse
+
  for f in $(find . -maxdepth 1 -type f -name "*.zip"); do
+
    echo "Unpack $f ..."; unzip -qq $f -d eclipse/dropins/${f/.zip/}
+
  done
+
fi
+
+
echo "Using vm=$vm and workspace=$workspace"; ./eclipse/eclipse -vm $vm -data $workspace \
+
  -vmargs -Xms128M -Xmx256M -XX:PermSize=128M -XX:MaxPermSize=256M \
+
  -consolelog -clean -debug -console -noexit
+
popd >/dev/null
+
</nowiki>}}
+
  
 
===Helpful Links===
 
===Helpful Links===
 +
 
*[http://www.howtoforge.com/setting-up-eclipse-pdt2.0-on-eclipse3.4-ganymede PDT 2.0 installation tutorial]
 
*[http://www.howtoforge.com/setting-up-eclipse-pdt2.0-on-eclipse3.4-ganymede PDT 2.0 installation tutorial]
  
== Eclipse 3.3 / Europa / PDT 1.0 ==
+
== Eclipse 3.4 / Ganymede / PDT 1.0.5+ ==
 +
 
 +
{{Warning2|text=
 +
NOTE: PDT 1.0.5+ requires Eclipse 3.4. For PDT with Eclipse 3.3, use PDT 1.0.3.}}
 +
 
 +
* [[#Install a JVM | Install a JDK or JRE]] -- minimum required level is 5.0.
 +
 
 +
* Get Eclipse:
 +
:* Download the latest [http://www.eclipse.org/downloads/ Ganymede JEE Bundle], then unpack it and [[IRC_FAQ#How_do_I_start_Eclipse.3F | start it up]].
 +
 
 +
* Start the Install Manager. You will require two update sites to perform an install of PDT 1.0.5+.
 +
{{codeblock|
 +
Help > Software Updates... > Available Software > Manage Sites...
 +
  Add... > ''add the PDT 1.0.5+ interim site: [http://download.eclipse.org/tools/pdt/updates/interim/ download.eclipse.org/tools/pdt/updates/interim/]''
 +
  Enable the Ganymede Update site (if not already enabled): [http://download.eclipse.org/releases/ganymede/ download.eclipse.org/releases/ganymede/]''
 +
  Select the '''PDT''' or '''PDT SDK''' Feature
 +
  Install...
 +
}}
 +
 
 +
[[Image:Pdt105-install-p2.png]]
 +
 
 +
* Install. Restart. Enjoy.
 +
 
 +
== Eclipse 3.3 / Europa / PDT 1.0.3 ==
  
 
* [[#Install a JVM | Install a JDK or JRE]] -- minimum required level is 5.0.
 
* [[#Install a JVM | Install a JDK or JRE]] -- minimum required level is 5.0.
Line 129: Line 360:
  
 
* Install[[#Known Problems|*]]. Restart. Enjoy.
 
* Install[[#Known Problems|*]]. Restart. Enjoy.
 +
 +
== Debugger ==
 +
 +
The PDT project does not contain server side implementation for PHP debugging and will welcome any open source or commercial implementation of the [http://www.eclipse.org/pdt/docs.php debug protocol].
 +
 +
===PHP Executable Debugger===
 +
 +
* Install via update site: In the main menu, select Help | Install New Software..., add the site http://downloads.zend.com/pdt and follow the instructions.
 +
* [http://www.zend.com/pdt#debugger Zend Executable Debugger] - A free Eclipse plugin that adds PHP executable debug capabilities to the Eclipse environment.
 +
 +
===PHP Web Server Debugger===
 +
 +
* [http://www.zend.com/pdt#ws_debugger Zend Web Server Debugger] - Web server debugger binaries which should be installed on the web server.
 +
 +
* [http://www.xdebug.org/ XDebug Components] - XDebug component for web server debugging.
  
 
== Known Problems ==
 
== Known Problems ==
 +
 +
* If after installing PDT you do not see the PDT perspective, views/editors/file associations do not work, or your get "An error occurred" messages, try restarting Eclipse with the -clean flag.
  
 
* You may find that your chosen mirror fails due to {{bug|203794}}. Until that bug is fixed, try another mirror, or try an FTP site instead of an HTTP site.
 
* You may find that your chosen mirror fails due to {{bug|203794}}. Until that bug is fixed, try another mirror, or try an FTP site instead of an HTTP site.
 +
 
* You may encounter problems on linux with non-existant cups servers in <code>/etc/cups/client.conf</code> ({{bug|242677}}). Try running with <code>./eclipse -Dorg.eclipse.swt.internal.gtk.disablePrinting</code>.
 
* You may encounter problems on linux with non-existant cups servers in <code>/etc/cups/client.conf</code> ({{bug|242677}}). Try running with <code>./eclipse -Dorg.eclipse.swt.internal.gtk.disablePrinting</code>.
* You may encounter this error message: ''Problem occurred: 'Selection Job titile' has encountered a problem.'' If so, you need to install [http://www.eclipse.org/downloads/download.php?file=/technology/dltk/downloads/drops/R1.0/I-I200807181303-200807181303/dltk-core-sdk-I-I200807181303-200807181303-incubation.zip DLTK 1.0.I200807181303] (or newer). Unpack the zip into your dropins folder (see [[#From_Zips|From Zips]] above).
+
 
 +
* You may encounter this error message: ''Problem occurred: 'Selection Job titile' has encountered a problem.'' If so, you need to install [http://download.eclipse.org/technology/dltk/downloads/ DLTK 1.0.I200807181303] (or newer). Unpack the zip into your dropins folder (see [[#From_Zips|From Zips]] above). See also {{bug|242947}}.
 +
:* Another variation reported to work: PDT 2.0.0 N20080823 + DLTK Core 0.95.0.v20080716 + DLTK RDS 0.95.0.v20080623
 +
 
 +
* If updating from a nightly build to a newer nightly, you will need to uninstall and then reinstall PDT. See {{bug|241341}}.
 +
 
 +
== See Also ==
 +
 
 +
* [[IRC_FAQ#How_do_I_install_a_project_with_multiple_dependencies.3F|How do I install a project with multiple dependencies?]]
 +
* [[IRC_FAQ##Installation.2C_Startup_and_Runtime|Eclipse - Installation, Startup & Runtime]]
 +
* [http://www.eclipse.org/pdt/install-old.php Old PDT Installation Instructions]
 +
* [https://bugs.eclipse.org/238960 Add a package for PHP developers] (feature request / discussion)
 +
* [http://wiki.eclipse.org/PDT/Installation/Execution_Environment Execution Environment Preferences]
 +
 
 +
 
 
[[Category:PDT]]
 
[[Category:PDT]]

Latest revision as of 16:11, 20 December 2017

Installing PDT is relatively easy.

Install a JVM

Regardless of your operating system, you will need to install a Java virtual machine.

  • If using Windows, you may already have one installed, but upgrading won't hurt.
  • If using Linux, read this -- GCJ will NOT work.

Consider an IBM JDK or a Sun JDK. See below for minimum requirements. Note that if you are on a 64-bit platform and are using a 64-bit JRE, you need to use a 64-bit Eclipse build.

Latest stable release

Marketplace

Install PHP Development Tools from Marketplace

Update Site

Latest stable release is always available under following Eclipse update site:

http://download.eclipse.org/tools/pdt/updates/latest

Please use use this article howto add update site to your Eclipse installation.

Eclipse 4.7.2 / Oxygen.2 / PDT 5.2.0

Eclipse 4.7.0 / Oxygen.0 / PDT 5.0.0

Eclipse 4.6.3 / Neon.3 / PDT 4.3.0

Eclipse 4.6.1 / Neon.1 / PDT 4.1.0

Eclipse 4.6.0 / Neon.0 / PDT 4.0.1

Eclipse 4.6.0 / Neon.0 / PDT 4.0.0

Eclipse 4.5.2 / Mars.2 / PDT 3.7.0

Eclipse 4.5.1 / Mars.1 / PDT 3.6.0

Eclipse 4.5 / Mars / PDT 3.5.0

Eclipse 4.4 / Luna / PDT 3.4.0

  • Download PHP EPP package from Eclipse Downloads page
  • or install PHP Development Tools via Help > Install new software

Eclipse 4.2 / Juno / PDT 3.1.1

PDT/Installation 3.1.1

Eclipse 3.7 / Indigo / PDT 3.0

From Update Site

Prerequisites

  • Installed and running Eclipse Classic 3.7

The minimum package is Eclipse Platform Runtime Binary. It is available at here
Any packages in Eclipse Downloads page are available also.

Installation Flow

  • Open Help -> Install New Software.
  • Select the Indigo update site.
  • When the list of existing features is populated - select 'PHP Development Tools'.
  • Make sure 'Contact all update sites...' is checked.

Indigo Install.png

  • Proceed with the installation by pressing 'Next', then press 'Next' again in the next screen.
  • Accept the EULA when asked:
  • Finish the installation. Restart Eclipse.
  • After restarting switch to the PHP perspective, and you are done:

Additional Installation

If you need Mylyn features,

  • Help -> Install New Software
  • Select Indigo
  • Expand 'Collaboration'
  • Check following features (some other features will be installed automatically because of dependencies)
    • Mylyn Context Connector: Eclipse IDE
    • Mylyn Tasks Connector: Bugzilla
    • Mylyn WikiText
  • Proceed installation

If you need RSE(Remote System Explorer) features,

  • Help -> Install New Software
  • Select Indigo
  • Expand 'Mobile and Device Development'
  • Check following feature (some other features will be installed automatically because of dependencies)
    • Remote System Explorer End-User Runtime
  • Proceed installation

If you need Eclipse Marketplace feature,

  • Help -> Install New Software
  • Select Indigo
  • Expand 'General Purpose Tools'
  • Check following feature (some other features will be installed automatically because of dependencies)
    • Marketplace Client
  • Proceed installation

If You Are

  • Using Windows Vista/7
    • Do not pair 32bit Eclipse and 64bit JRE/JDK or vice versa. Use 32bit Eclipse on 32bit JRE/JDK, or 64bit Eclipse on 64bit JRE/JDK.
    • Do not install Eclipse under 'Program Files' or 'Program Files(x86)' folder.
  • Using Linux distro
    • Make sure SWT requirements if you have troubles with Content Assist or Internal Web Browser.
      • CSS styles appear in Content Assist Information.
      • Internal Web Browser is unavailable (cannot be opened or such).


Eclipse 3.6 / Helios / PDT 2.2

Note: PDT 2.2 is scheduled for release in June 2010. This will install a recent development snapshot, not the final 2.2.0 release.

From Update Site

Prerequisites

  • Installed and running Eclipse Classic 3.6

Installation Flow

  • Open Help->Install New Software.
  • Select the Helios update site and choose Eclipse PDT . When the list of existing features is populated - select 'Runtime' feature:

Helios site.PNG

  • Proceed with the installation by pressing 'Next', then press 'Next' again in the next screen.
  • Accept the EULA when asked:

PDT 2 2 Accept EULA.png

  • Finish the installation. Restart Eclipse.
  • After restarting switch to the PHP perspective, and you are done:

PDT 2 2 Switch Perspective.png

From Zips

  • Download the latest PDT 2.2 Runtime + all its listed build dependencies, including Eclipse.
  • Unpack Eclipse, then unpack everything else into your eclipse/dropins/ folder.
  • Run the Eclipse executable file.

Eclipse 3.5 / Galileo / PDT 2.1

From All-In-One Package

  • Unpack the archive file you've downloaded into the directory in which you want to install PDT.
  • Run the Eclipse executable file. Start having fun in PHP world.

From Update Site (or Update Site Zip)

  • Get Eclipse:
  • Start the Install Manager.
  • If you downloaded a PDT Update zip:
Help > Install New Software... 
  [x] Contact all update sites during install to find required software
  Add... > Archive... > Browse for the PDT Update zip
  Select the PDT or PDT SDK Feature
  Install...
  • You can also install PDT from the Galileo Update site:
Help > Install New Software... 
  Select the Galileo Update site
  Select the PDT or PDT SDK Feature
  Install...
  • Install. Restart Eclipse. Enjoy.

Eclipse 3.4 / Ganymede / PDT 2.0

From All-In-One Package

  • Download the latest All-In-One package that is compatible with your OS.
  • This archive file includes the Eclipse environment, PDT and all the required dependencies you need to start developing using PDT.
  • Unpack the archive file you've downloaded into the directory in which you want to install PDT.
  • Run the Eclipse executable file. Start having fun in PHP world.

From Update Site

  • Get Eclipse:
  • Start the Install Manager. You will require three update sites to perform an install of PDT 2.0.
Help > Software Updates... > Available Software > Manage Sites...
  Add... > add the DLTK 1.0 interim site: download.eclipse.org/technology/dltk/updates-dev/1.0M4-PDT-2.0/
  Add... > add the PDT 2.0 interim site: download.eclipse.org/tools/pdt/updates/2.0/
  Enable the Ganymede Update site (if not already enabled): download.eclipse.org/releases/ganymede/
  Expand the DLTK site and select the Dynamic Languages Toolkit - Core Frameworks or Dynamic Languages Toolkit - Core Frameworks SDK Feature 
  Select the PDT or PDT SDK Feature
  Install...

Pdt-install-p2.png

  • Install. Restart Eclipse. Enjoy.

From Zips

  • Download the latest PDT 2.0 build + all its listed dependencies, including Eclipse.
  • Unpack Eclipse, then unpack everything else into your eclipse/dropins/ folder.
  • Run the Eclipse executable file.

Helpful Links

Eclipse 3.4 / Ganymede / PDT 1.0.5+

NOTE: PDT 1.0.5+ requires Eclipse 3.4. For PDT with Eclipse 3.3, use PDT 1.0.3.
  • Get Eclipse:
  • Start the Install Manager. You will require two update sites to perform an install of PDT 1.0.5+.
Help > Software Updates... > Available Software > Manage Sites...
  Add... > add the PDT 1.0.5+ interim site: download.eclipse.org/tools/pdt/updates/interim/
  Enable the Ganymede Update site (if not already enabled): download.eclipse.org/releases/ganymede/
  Select the PDT or PDT SDK Feature
  Install...

Pdt105-install-p2.png

  • Install. Restart. Enjoy.

Eclipse 3.3 / Europa / PDT 1.0.3

  • Get Eclipse:
  • If one exists for your platform (operating system, windowing system, architecture), the simplest way to install PDT is via an All-In-One bundle.
  • If installing on Linux, you can look for a package from your distro maintainter/repositories, but this is not supported by eclipse.org. If you encounter problems with such a bundle, please contact your distro maintainer.
  • Otherwise, download an Eclipse SDK or Runtime Binary or the Europa JEE Bundle, then unpack it.
Help > Software Updates > Find and Install... > 
  (*) Search for new features > Next > 
  [x] Europa Discovery Site > 
  New Remote Site > add the new site: http://download.eclipse.org/tools/pdt/updates/ >
  Finish
  • Expand the Europa Discovery site to resolve dependencies. Collapsed sites will not be searched.
  • Select the PDT feature(s) you want to install.
  • Click the Select Required button to resolve missing dependencies.
  • Install*. Restart. Enjoy.

Eclipse 3.2 / Callisto / PDT 0.7

  • Get Eclipse:
  • If installing on Linux, you can look for a package from your distro maintainter/repositories, but this is not supported by eclipse.org. If you encounter problems with such a bundle, please contact your distro maintainer.
  • Otherwise, download an Eclipse SDK or Runtime Binary, then unpack it and start it up.
Help > Software Updates > Find and Install... > 
  (*) Search for new features > Next > 
  New Remote Site > add the new site: http://download.eclipse.org/callisto/releases/ >
  New Remote Site > add the new site: http://download.eclipse.org/tools/pdt/updates/ >
  Finish
  • Select the projects &/or components you want to install.
  • Expand the Callisto Updates site to resolve dependencies. Collapsed sites will not be searched.
  • Select the PDT feature(s) you want to install.
  • Click the Select Required button to resolve missing dependencies.
  • If it does not work, you will have to manually select dependencies.
  • If that doesn't work, start over, but add more update sites. Can't find a given dependency? Try here or here.
  • Install*. Restart. Enjoy.

Debugger

The PDT project does not contain server side implementation for PHP debugging and will welcome any open source or commercial implementation of the debug protocol.

PHP Executable Debugger

  • Install via update site: In the main menu, select Help | Install New Software..., add the site http://downloads.zend.com/pdt and follow the instructions.
  • Zend Executable Debugger - A free Eclipse plugin that adds PHP executable debug capabilities to the Eclipse environment.

PHP Web Server Debugger

Known Problems

  • If after installing PDT you do not see the PDT perspective, views/editors/file associations do not work, or your get "An error occurred" messages, try restarting Eclipse with the -clean flag.
  • You may find that your chosen mirror fails due to bug 203794. Until that bug is fixed, try another mirror, or try an FTP site instead of an HTTP site.
  • You may encounter problems on linux with non-existant cups servers in /etc/cups/client.conf (bug 242677). Try running with ./eclipse -Dorg.eclipse.swt.internal.gtk.disablePrinting.
  • You may encounter this error message: Problem occurred: 'Selection Job titile' has encountered a problem. If so, you need to install DLTK 1.0.I200807181303 (or newer). Unpack the zip into your dropins folder (see From Zips above). See also bug 242947.
  • Another variation reported to work: PDT 2.0.0 N20080823 + DLTK Core 0.95.0.v20080716 + DLTK RDS 0.95.0.v20080623
  • If updating from a nightly build to a newer nightly, you will need to uninstall and then reinstall PDT. See bug 241341.

See Also

Back to the top