If Not True Then False

Install Eclipse Mars 4.5 on Fedora 24/23, CentOS/RHEL 7.2/6.8/5.11 - Comment Page: 7

This is guide, howto install latest Eclipse Mars.2 4.5.2 on Fedora, CentOS and Red Hat (RHEL). This guide should work with Fedora 24/23/22/21/20/19/18/17/16/15/14/13/12, CentOS 7.2/6.8/5.11 and Red Hat (RHEL) 7.2/6.8/5.11 and even with earlier versions. Latest working version on CentOS/RHEL 5.11 is Eclipse Luna 4.4.2. Eclipse is a multi-language software development environment comprising an...
Categories:

172 Comments

Leave a Comment

Your email address will not be published. Required fields are marked *

Input your comment.
help

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Input your name.

Mriyam

How can I uninstall Eclipse if I use this method for installation?

reply Reply
JR

Hi Mriyam,

You could remove Eclipse using following commands:


## Remove Eclipse launcher ##
rm /usr/share/applications/eclipse.desktop
 
## Remove Eclipse executable ##
rm /usr/bin/eclipse
 
## Remove Eclipse Path ##
rm -rf /opt/eclipse

This doesn’t remove your data from home directory, just this guide Eclipse installation.

reply Reply
Georg

Awesome! Very nice that you include on how to do the [Desktop Entry] etc.! Thank you! :)

reply Reply
Vasile

there is a “nano ~” missing in point 7 before “/usr/share/appl….”
It doesn’t work without it.

reply Reply
JR

Hello Vasile,

You can use any editor (nano, pico, vim/vim, joe etc.), that’s why there is only mention, “Create following file, with our favourite editor”.

reply Reply
JR

Hi carlos,

Yes, Eclipse Mars 4.5 is available if you have Fedora 22/23/24.

And better command is:


dnf install eclipse

This is manual method and works EL 5/6/7 and older Fedoras. And you can select your Eclipse version from http://www.eclipse.org/downloads/

reply Reply
jaboneros

thank you for this – installed Eclipse Mars without incident in my Fedora 23 32-bit

reply Reply
guru

Hi,

This website is awesome!!! Kudos to the owner. Can you please, post a tutorial on how to install Hadoop, Big Data, Sqoop, Hadoop Single Node Cluster, HBase, Hive, Spark, on Fedora 23, Ubuntu, OpenSuSE, and CentOS ???????

Please, You are porbably only few of the Linux Guru’s who knows everything. Thanks

reply Reply
kunal raut

/usr/bin/eclipse: /opt/eclipse/eclipse: /lib/ld-linux.so.2: bad ELF interpreter:

PLZ help me how to solve it.I follow ur blog java1.7,tomcat7 running seccesfully but eclipse cant. Plz help.
Thanks
kunal raut

reply Reply
JR

Hi kunal,

Could post output of following command:


uname -a

And full file name what you downloaded?

reply Reply
Daniel Hernandez

Running Install Eclipse Mars 4.5 on RHEL 5.11
I get the following error message after having follow your steps.

configure: error: Package requirements (glib-2.0 >= 2.28.0 atk >= 1.30 pango >= 1.20 cairo >= 1.10.0 cairo-gobject >= 1.10.0 gdk-pixbuf-2.0 >= 2.22.0) were not met:

No package ‘glib-2.0’ found
No package ‘atk’ found
No package ‘pango’ found
No package ‘cairo’ found
No package ‘cairo-gobject’ found
No package ‘gdk-pixbuf-2.0’ found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables BASE_DEPENDENCIES_CFLAGS
and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Do you have a screen shot of it working on RHEL 5.11 if so could you please reference your steps so that I can follow them. Thanks.

reply Reply
JR

Hi Daniel,

This is actually my mistake. Latest working version (on CentOS/RHEL 5.11) is Eclipse Luna (4.4.2) http://www.eclipse.org/downloads/packages/release/Luna/SR2

Simply Download your package and run following commands (I assume that you have installed Mars as described):


rm -rf /opt/eclipse

tar -xvzf eclipse-java-luna-SR2-linux-gtk-x86_64.tar.gz -C /opt

Then you can also modify your launcher “Comment” row.

reply Reply
Vasile

Hello JR,

I have followed this tutorial, but installed Neon instead (the most recent version).

With Neon what you extract is the installer, not the app. Presently I can only run Eclipse from command line using sudo. Trying to launch Eclipse by clicking on the icon fails with “Eclipse executable launcher was unable to locate its companion shared library”.

Trying the same from CL:
[myuser@localhost ~]$ eclipse
/root/.p2/pool/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.400.v20160518-1444: cannot open shared object file: Permission denied

Also creating any project fails with the message: ‘”Cannot read the java.home” property – unable detect the JVM that Eclipse is running on.’ But I have JAVA_HOME set and I showed the path to jdk via Window->Preferences->JDKs…

Any advise would be greatly appreciated :-) But if you think it is unreparable, please tell me how to uninstall it. I will try Mars then.

Thank you,
Vasile

reply Reply
Gradie

Could anyone help me with point 6!

## Paste following content to file ##
#!/bin/sh
export ECLIPSE_HOME=”/opt/eclipse”

$ECLIPSE_HOME/eclipse $*

reply Reply