Eclipse is an integrated development ennvironment primarily for Java but with the extra plugins it can also be used to develop applications in C, C++, PHP, Scala, etc.
Here we are explaining How to install eclipse on linux. Distros covered are Fedora, CentOS and RHEL.
Download Eclipse
Go to www.eclipse.org/downloads/ and select suitable version according to your needs.
Switch to root
ayush@linuxstall:$ su -
Extracting
We are extracting the Eclipse package into /opt directory.
ayush@linuxstall:$ tar -xvzf eclipse-SDK-3.7.2-linux-gtk.tar.gz -C /opt
Adding read permissions
ayush@linuxstall:$ chmod -R +r /opt/eclipse
Creating executable
ayush@linuxstall:$ touch /usr/bin/eclipse
ayush@linuxstall:$ chmod 755 /usr/bin/eclipse
ayush@linuxstall:$ gedit /usr/bin/eclipse
Paste following code in the file.
#!/bin/sh export ECLIPSE_HOME="/opt/eclipse" $ECLIPSE_HOME/eclipse $* |
You are done!
Hmm, I usually just extract it and copy it to some folder like /home/user/Programs