RSS
 

Using Eclipse as a PHP IDE in Ubuntu 9.10

25 Nov

This is actually much easier than any of the guides I found online make out.

Firstly, install Eclipse from the repositories. Then open it up, select your default workspace (if you havent already) and then:

  1. From the Help menu, select “Install new software”.
  2. Click the “Add” button and add the following:
      • Name: Eclipse Updates (Galileo)
      • Location: http://download.eclipse.org/releases/galileo/
      1. Apply your changes and wait for the contents to download.
      2. When all is ready, select your new source from the drop down and look for the “Programming languages” section.
      3. Open it up and add the “PHP Development Tools (PDT) SDK Feature”.
      4. Step through using Next and Finish etc, and after a few moments downloading and installing you now have a PHP ready IDE.
       

      Tags: , , ,

      Leave a Reply

       

       
      1. Ramiro Arias-Amaya

        December 10, 2009 at 4:06 pm

        Good morning
        Thank you for sharing your knowledge about this. I followed your steps to the letter. Unfortunately in the last step I got an error message. Following you will find the steps I followed and what I have encountered. I installed Ubuntu 9.10, then I installed the packages mentioned in the web site “The Perfect Desktop – Ubuntu 9.10 (Karmic Koala)” http://www.howtoforge.com/the-perfect-desktop-ubuntu-9.10-karmic-koala

        Everything went perfect so far. Now Eclipse.

        Step 0. Install Eclipse from the repositories.
        I went to the Synaptic Package Manager and I installed the following applications:
        eclipse-rcp 3.5.1+repack…
        eclipse-plaftform 3.5.1+repack…
        eclipse-platform-data 3.5.1+repack…

        (I did not find an entry like Eclipse Galileo or something equivalent).

        Step 1. Done
        Step 2. Done
        Step 3. No changes were shown and as a result no changes were applied.
        Step 4. Look for “Programming Languages” Section. Done.
        Step 5. Open it up and add the “PHP Development Tools (PDT) SDK Feature”. Done.
        Step 6. Step through using Next and Finish etc. Done. It downloaded a lot of things and apparently everything went smoothly and when I thought the installation process would finish successfully the following message appeared:
        ‘Install’ has encountered a problem
        An error occured while installing the items

        I pressed the “Details >>” button and the following appeared:

        An error occurred while installing the items
        session context was:(profile=PlatformProfile, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Install, operand=null –> [R]org.eclipse.ant.ui 3.4.1.v20090901_r351, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction).
        The artifact file for osgi.bundle,org.eclipse.ant.ui,3.4.1.v20090901_r351 was not found.

        I would appreciate if you can help me on this matter at your earliest convenience.

        Thanks and regards
        Ramiro
        RamiroArias@pochta.ru

         
      2. Sam

        December 10, 2009 at 4:45 pm

        Hi Ramiro, Sorry you have had problems. I suspect there may have been some changes in the packages used by Karmic since I wrote the guide…

        After doing some digging on line, it seems that this might be a bug. you could try the following though:

        sudo apt-get install eclipse-platform eclipse-jdt eclipse-pde

        Seems that some plugin packages have changed which dependencies they use – and doing this might cover all the bases.

        Let me know if it works.

         
      3. Ramiro Arias-Amaya

        December 14, 2009 at 5:39 pm

        Hi Sam
        Thank you for your answer. Before you posted your answer, I tried the command:
        sudo apt-get install eclipse

        and followed the rest of your steps and the installation was successful.

        I will appreciate if you explain to all of us the difference between these two commands:
        sudo apt-get install eclipse
        sudo apt-get install eclipse-platform eclipse-jdt eclipse-pde

        Kind regards
        Ramiro

         
      4. phz

        February 8, 2010 at 6:29 am

        Hi,

        This is only site with help… Follow theses steps and Done, everything work OK.

        Thks