Jump to: navigation, search

Difference between revisions of "PDT/Installation"

< PDT
(See Also)
(Eclipse 3.4 / Ganymede / PDT 2.0: updated instructions for install from update site)
Line 18: Line 18:
  
 
* Get Eclipse:
 
* Get Eclipse:
:* 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://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-I200810061111-200810061111/dltk-core-I-I200810061111-200810061111-incubation.zip dltk-core-*-incubation.zip]. Unpack the zip somewhere.
 
 
{{codeblock|<nowiki>dltk=$(find . -name "dltk-core-*-incubation.zip"); unzip -qq -d ${dltk}_ ${dltk}</nowiki>}}
 
 
:* If you want to use the Eclipse updater, add the following site: http://download.eclipse.org/technology/dltk/updates-dev/1.0 and then install Dynamic Languages Toolkit->Dynamic Languages Toolkit - Core Frameworks SDK.
 
 
* Download the latest [http://download.eclipse.org/webtools/downloads/ Web Tools Platform Release Build], eg. [http://www.eclipse.org/downloads/download.php?file=/webtools/downloads/drops/R3.0/R-3.0.2-20080921203356/wtp-R-3.0.2-20080921203356.zip wtp-*.zip]. Unpack the zip somewhere.
 
 
:* If you want to use the Eclipse updater, go into the Updater, click on the "Available Software" tab, click the "Manage sites" button on the right, click the checkbox next to "Web Tools (WTP) update  site", click "OK", then in the "Available Software" tab, in "Web Tools (WTP) Update Site", install the latest Web Tools Platform - (currently "Web Tools Platform 3.0.2").
 
 
* Download the latest [http://www.eclipse.org/pdt/downloads/ PDT 2.0 build]. Unpack the zip somewhere.
 
 
{{codeblock|<nowiki>pdt=$(find . -name "org.eclipse.php_feature-*.zip"); unzip -qq -d ${pdt}_ ${pdt}</nowiki>}}
 
 
 
* Start the Install Manager.
 
* Start the Install Manager.
 
{{codeblock|
 
{{codeblock|
  Help > Software Updates... > Available Software
+
  Help > Software Updates... > Available Software > Manage Sites...
   Add Site... > ''add the Ganymede Update site (if not already listed): http://download.eclipse.org/releases/ganymede/''
+
   Add Site... > ''add or enable the Ganymede Update site (if not already listed): http://download.eclipse.org/releases/ganymede/''
   Add Site... > Local > ''add the unpacked folder: .../dltk-core-*-incubation.zip_''
+
   Add Site... > Local > ''add the DLTK 1.0 update site: http://download.eclipse.org/technology/dltk/updates-dev/1.0''
   Add Site... > Local > ''add the unpacked folder: .../org.eclipse.php_feature-*.zip_''
+
   Add Site... > Local > ''add the PDT 2.0 interim update site: http://download.eclipse.org/tools/pdt/updates/interim/''
   Add Site... > Local > ''add the unpacked folder: .../wtp-*.zip_''
+
   Expand the DLTK site and select the '''Dynamic Languages Toolkit - Core Frameworks''' or '''Dynamic Languages Toolkit - Core Frameworks SDK''' Feature
  Press "Refresh"
+
   Select the '''PDT ''' or '''PDT SDK''' Feature
  Select the '''Dynamic Languages Toolkit - Core Frameworks''' Feature
+
   Select the '''PDT''' Feature
+
  Select the '''WTP''' Feature
+
 
   Install...
 
   Install...
 
}}
 
}}

Revision as of 16:08, 21 November 2008

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.

Eclipse 3.4 / Ganymede / PDT 2.0

This information is preliminary and subject to change. If you see an error or omission, please feel free to edit it.

From Update Site

  • Get Eclipse:
  • Start the Install Manager.
Help > Software Updates... > Available Software > Manage Sites...
  Add Site... > add or enable the Ganymede Update site (if not already listed): http://download.eclipse.org/releases/ganymede/
  Add Site... > Local > add the DLTK 1.0 update site: http://download.eclipse.org/technology/dltk/updates-dev/1.0
  Add Site... > Local > add the PDT 2.0 interim update site: http://download.eclipse.org/tools/pdt/updates/interim/
  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. Enjoy.

From Zips

  • Download the latest PDT 2.0 build + all its listed dependencies, including Eclipse.
  • Save this script as pdt.sh. The first time, run it like this to create a clean PDT install: ./pdt.sh clean; on subsequent restarts, just run ./pdt.sh
 #!/bin/bash
 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

Helpful Links

Eclipse 3.3 / Europa / PDT 1.0

  • 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

  • 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