Posted by Owen Barton on September 22, 2007 at 8:05am
Last updated by lindawww on Thu, 2017-12-14 08:43
Last updated by lindawww on Thu, 2017-12-14 08:43
Updated Install Instructions for Eclipse 3.4
It is recommended to install Eclipse manually into the /opt or ~/opt directory. It is possible to install Eclipse using apt-get or Synaptic, but this can cause permissions and/or upgrade complexities and so is not recommended. _Note: These instructions were created for installing Eclipse on Ubuntu 8.10, and they include a step to install Subclipse v1.4 which is compatible with Ubuntu 8.10 / SVN version 1.5. If you are running an earlier version of Ubuntu or SVN you should install an earlier version of Subclipse.
Install Eclipse
- Download eclipse: http://download.eclipse.org/eclipse/downloads/ and select the newest of the "Latest Releases", 3.4.1 at the time of writing (note, do not select any of the next version stream - 3.5 currently - 'stable' or integration builds).
- You will need to chmod and/or chown /opt first
sudo chmod 777 /opt -R
- Extract into /opt using
tar xvzf file.tar.gz
- Create a new menu item for Eclipse (right-click on menu -> edit menu) or launcher (right click on desktop or taskbar).
- If you are get bored, just listen this: Solar Eclipse
Install Eclipse Extensions
These instructions are for eclipse on Ubuntu 8.04 or less. Mac/Windows might vary a little, but principle's are the same.
- Start Eclipse.
- Help -> Software Updates. Click the Available Software tab, then click on Add Site.
- Add Site: http://phpeclipse.sourceforge.net/update/stable/1.2.x/ (more info to install PHPEclipse for programming PHP.
- Add Site: http://subclipse.tigris.org/update_1.4.x (additional info version and roadmap info) to install Subclipse (for Subversion).
- Optionally add additional plugins, such as plugins for Mylyn environment or development plugins such as Python, Ruby, or Perl.
- Optional: Add http://pydev.sf.net/updates/ as a 'New Remote Site' and use it to install PyDEV (if you code in Python).
- Optional: Add http://e-p-i-c.sf.net/updates as a 'New Remote Site' and use it to install EPIC (if you code in Perl).
- Optional: Add http://download.eclipse.org/technology/mylar/update-site/e3.2 as a 'New Remote Site' and use it to install Mylar (for task-focussed access to Bugzilla, Trac and JIRA).
- Optional: Install automated test suite SimpleTest for Eclipse (follow link for instructions).
- Check the boxes next to the new sites you just created (to install PHPeclipse & subclipse)
- Choose the Install... button to begin the installation.
Configure Eclipse
- IMPORTANT! Configure Eclipse to use Drupal coding standards
- You will probably want to remove the Java perspective (top right) and add the PHP perspective (right click). [Window > Open Perspective > Other ... and select PHP ]
Synchronize your Local Workspace with your LAMP server.
- The best way to code Drupal sites in Eclipse is to use rsync.
sudo apt-get install rsync
I set a batch script in the site root (sync.bat) and execute it whenever I want to update the server. The script can be found here: http://www.scrounge.org/linux/rsync.html.