Christoffer Kjølbæk I have a blog, therefore I am…

1Nov/096

Howto use Eclipse with PHP and SVN in Ubuntu 9.10

This little guide will show how to set up Eclipse for developing PHP sites using PHP Development Tools Project and Subversion.

Install Eclipse Galileo from repository:

sudo apt-get install eclipse

A number of dependencies are required inside Eclipse, which has to be added. Start Eclipse from the menu, and select Help > Install new software... The below list of update sites has to be added, which is done be typing the URL in "Work with", click Add and then type the name in the name field followed by Ok. Do this for the below update sites (name followed by URL):

EMF, http://download.eclipse.org/modeling/emf/updates/releases/
MyLyn, http://download.eclipse.org/tools/mylyn/update/e3.4/
GEF, http://download.eclipse.org/tools/gef/updates/releases/
DLTK, http://download.eclipse.org/releases/galileo/
Webtool, http://download.eclipse.org/webtools/updates/

PDT
Add http://download.eclipse.org/tools/pdt/updates/2.0/ with name PDT. Open "PDT SDK 2.1.2" and select "PHP Development Tools (PDT) Runtime Feature", click Next twice, accept the license and click Finish.

Subclipse
SVN integration (or one of them) in Eclipse is called Subclipse and is installed through update sites as well. Select Help > Install new software... and add http://subclipse.tigris.org/update_1.6.x into the "Work with" field and click Add type "Subclipse" in name and click Ok. Select all three options and click Next, Next, accept License and click Finish.

Checking out a project
Select File -> New -> Other in the new window select SVN -> Checkout Projects from SVN and click Next.

Select "Create a new repository location", click Next. Type SVN repository in URL, click Next. Type username and password if required. Select the part of the repository containing the project, click Finish.

If the repository not already holds project settings for Eclipse, select "Check out as a project configured using the New Project Wizard" and click Finish. In the New Project Wizard select PHP -> PHP Project and click Next. Give the project a name and you are ready to go - have fun! :)

Kommentarer (6) Trackbacks (0)
  1. works fine except for Subclipse
    no options after adding http://subclipse.tigris.org/update_1.6.x ???

  2. Hi Fred

    I hat some weird graphical issues with Eclipse. Is there a vertical scrollbar beneath the big white field where there should be some lines with checkboxes?

    If there is, make sure the width of the “Name” and “Version” column is narrow enough, so that the scrollbar do not appear, which will make some text will appear in the field.

    I know it sounds weird, but I have been fighting a lot with this issue, and thought is was my computer only :)

    Best regards
    Christoffer

  3. If you installed Eclipse through Ubuntu package management, there was an update today which, for me, fixed the problem.

  4. Finally! I’ve been trying to get past the ‘looking for dependencies’ thing while installing pdt into eclipse for a few days, and thanks to your instructions it appears that I finally did get around it.

    The wait is now for the install to finish and verify that it actually will work.

  5. Here given details about the Eclipse use with PHP and SVN.
    Eaisly step by step information given here.There is SVN details given here.

  6. This works under Ubuntu 10.04 as well


Læg en kommentar


Ingen trackbacks endnu.