PHP development with SVN using Eclipse PDT and Subclipse in Ubuntu 8.10
Posted on May 1st, 2009 by Shibu BasheerEclipse’s PDT project provides an excellent development tool for LAMP developers. It provides great features like code completion, zend debugger, error checking and all the goodness that comes with default eclipse package. One of the nice things that PDT lacks out of the box is SVN support. This can be easily achieved using subclipse plugin available for eclipse. This is how you would install PDT, subclipse and get productive in less than 15 minutes (depending on your bandwidth). For this article, we are using Ubuntu 8.10, so change use commands specific to your favorite flavour of linux.
1. If you do not have java already installed, get it by running sudo apt-get install sun-java6-jdk
2. Download a copy of Eclipse PDT from http://www.eclipse.org/pdt/ . untar and launch eclipse by running “eclipse” command.
3. Install JavaHL : sudo apt-get install libsvn-javahl . JavaHL is the Java language binding for the Subversion API. This is required by subclipse.
4. Install Subclipse. Launch PDT eclipse. Goto menu Help -> Software Updates -> Available Software (tab) -> Add sites (button). Add a new site, the URL is http://subclipse.tigris.org/update_1.4.x . Install the subclipse packages including Subversion native adapter library, revision graph etc.
5. Edit the eclipse.ini file located in your eclipse directory. Add the following to the end of the file :
-Djava.library.path=/usr/lib/jni
Now you have a PDT eclipse installed with SVN support, and you are ready to get started with some serious development.
Tags: linux php
