Installing Eclipse in Linux with PHP and Perl Support
Category:
In Linux people use vim, vi, gedit and Eclipse as the Text Editor or IDE. Previously I had posted, how to install Sublime text editor in Linux, today I will post about installing Eclipse Indigo in Fedora 15, with PHP and Perl Support.
So, without further more delay let us get started,
Installing Eclipse
In this section I will describe how to install the Eclipse IDE.
- First we will download eclipse from Eclipse website. Here we will use Eclipse Classic package.
-
Next when downloaded, navigate to the directory. Then extract the tar.gz file to your preferred location. I use /opt/ to put all the editors. So I will do the following,
[aneek@localhost home]$ sudo tar -xvzf eclipse-SDK-3.7-linux-gtk.tar.gz -C /opt
-
Next we need the root privilege. So gain it by issuing the following,
[aneek@localhost home]$ su
Then navigate to /opt/ directory. And provide read permission to eclipse directory.
[aneek@localhost opt]$ chmod -R +r /opt/eclipse
-
We have to create an executable path for eclipse. So we can access it from anywhere. So to do that,
[aneek@localhost opt]$ touch /usr/bin/eclipse [aneek@localhost opt]$ chmod 755 /usr/bin/eclipse
-
Then, enable the eclipse path as active,
[aneek@localhost opt]$ vim /usr/bin/eclipse
Write the following in that file and save,
export ECLIPSE_HOME="/opt/eclipse" $ECLIPSE_HOME/eclipse $*
-
Now we have to create a Gnome Desktop Launcher or Short cut. So again we have to create a file called, eclipse.desktop.
[aneek@localhost opt]$ vim /usr/share/applications/eclipse.desktop
Then copy and paste the configurations,
[Desktop Entry] Encoding=UTF-8 Name=Eclipse Comment=Eclipse IDE Exec=eclipse Icon=/opt/eclipse/icon.xpm Terminal=false Type=Application Categories=GNOME;Application;Development; StartupNotify=true
Then save and exit the file. And logout and login back.
-
Now Go to Activities > Type To Search > Write Eclipse and you will see eclipse coming as the Search Result.

- We are all done with eclipse. Next we will install PHP and Perl Support.
Enabling PHP in Eclipse
In this section we will enable the PHP Development Tool-kit support for eclipse.
- First Open up eclipse and Navigate to Help > Install New Software.
-
Then Click on Add button. Then provide the name as PDT then in Location write, http://download.eclipse.org/releases/indigo.

In my case it says, duplicate location, because I already have that location added previously. In first time you won't get that. - Then follow the steps to add the support. Once done Restart Eclipse.
Enabling Perl in Eclipse
To enable perl support in Eclipse follow the below instructions,
- Go to http://epic-ide.org/download.php. Then copy the Recent 0.6.x version(http://e-p-i-c.sf.net/updates/testing).
- Again Open up eclipse and Navigate to Help > Install New Software. There, click on Add button and give the name as Perl and location as http://e-p-i-c.sf.net/updates/testing.
- Then follow the steps and restart eclipse. You will have Perl Support installed in Eclipse.
This is all about Eclipse in Linux. I have tested this in Fedora 15 and I hope it will work in all the Linux boxes out there. If you find any problem or suggestions do write to me.
Comments
Review
Submitted by Pritam Sarkar (not verified) on
Excellent tutorial! The beauty of this post is that it's extremely straight forward and ask you to do only those steps which you needed, nothing else..
Thanks Aneek!
Thanks Pritam
Submitted by aneek on
Thank you Pritam, for showing great interest in this tutorial. I hope this one helped you and will help you in future.
Add new comment