Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error installing Eclipse IDE
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
marcelohsp
n00b
n00b


Joined: 11 Feb 2023
Posts: 40

PostPosted: Sat Apr 08, 2023 6:42 pm    Post subject: Error installing Eclipse IDE Reply with quote

Hi,

I was trying to emerge Eclipe IDE and I followed the steps according this link (https://wiki.gentoo.org/wiki/Eclipse). When I run the "emerge dev-util/eclipse-sdk-bin" command, I get some dependency problem: https://bpa.st/YQJ4E
Is it still possible to install Eclipse IDE?

best regards,
mhsp


Last edited by marcelohsp on Sun Apr 09, 2023 2:25 pm; edited 2 times in total
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21724

PostPosted: Sat Apr 08, 2023 6:53 pm    Post subject: Reply with quote

https://bpa.st/YQJ4E:
Calculating dependencies  . * ERROR: dev-util/eclipse-sdk-bin-4.5.2-r2::eclipse failed (depend phase):
 *   eutils: EAPI 5 not supported
This is not a dependency problem. This is a bit-rot problem. The overlay uses an abandoned EAPI for this ebuild. The ebuild needs to be updated to a newer EAPI, or removed from the repository. I see from the history that this repository is relatively inactive. It may be abandoned.
Back to top
View user's profile Send private message
marcelohsp
n00b
n00b


Joined: 11 Feb 2023
Posts: 40

PostPosted: Sat Apr 08, 2023 9:20 pm    Post subject: Reply with quote

Thanks for the return.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30965
Location: here

PostPosted: Sun Apr 09, 2023 5:20 am    Post subject: Reply with quote

I had started to create an ebuild for eclipse but then I changed ide, maybe it can still help
eclipse-ide-bin-4.23.0.ebuild:
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit desktop java-pkg-2

SR="R"
RNAME="2022-03"
SRC_BASE="https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/${RNAME}/${SR}/eclipse"

DESCRIPTION="The Leading Open Platform for Professional Developers"
HOMEPAGE="http://www.eclipse.org"
SRC_URI="
       committers? ( ${SRC_BASE}-committers-${RNAME}-${SR}-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-committers-${RNAME}-${SR}-linux-gtk-x86_64-${PV}.tar.gz )
       cpp? ( ${SRC_BASE}-cpp-${RNAME}-${SR}-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-cpp-${RNAME}-${SR}-linux-gtk-x86_64-${PV}.tar.gz )
       computing? ( ${SRC_BASE}-parallel-${RNAME}-${SR}-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-parallel-${RNAME}-${SR}-linux-gtk-x86_64-${PV}.tar.gz )
       dsl? ( ${SRC_BASE}-dsl-${RNAME}-${SR}-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-dsl-${RNAME}-${SR}-linux-gtk-x86_64-${PV}.tar.gz )
       embedcpp? ( ${SRC_BASE}-embedcpp-${RNAME}-${SR}-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-embedcpp-${RNAME}-${SR}-linux-gtk-x86_64-${PV}.tar.gz )
       php? ( ${SRC_BASE}-php-${RNAME}-${SR}-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-php-${RNAME}-${SR}-linux-gtk-x86_64-${PV}.tar.gz )
       java? ( ${SRC_BASE}-java-${RNAME}-${SR}-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-${RNAME}-${SR}-linux-gtk-x86_64-${PV}.tar.gz )
       javaee? ( ${SRC_BASE}-jee-${RNAME}-${SR}-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-jee-${RNAME}-${SR}-linux-gtk-x86_64-${PV}.tar.gz )
       modeling? ( ${SRC_BASE}-modeling-${RNAME}-${SR}-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-modeling-${RNAME}-${SR}-linux-gtk-x86_64-${PV}.tar.gz )
       rcp? ( ${SRC_BASE}-rcp-${RNAME}-${SR}-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-rcp-${RNAME}-${SR}-linux-gtk-x86_64-${PV}.tar.gz )
       scout? ( ${SRC_BASE}-scout-${RNAME}-${SR}-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-scout-${RNAME}-${SR}-linux-gtk-x86_64-${PV}.tar.gz )
"
S="${WORKDIR}/eclipse"

LICENSE="EPL-1.0"
SLOT="$(ver_cut 1-2)"
KEYWORDS="~amd64"
IUSE="committers cpp computing dsl embedcpp php +java javaee modeling rcp scout"
REQUIRED_USE="^^ ( committers cpp computing dsl embedcpp php java javaee modeling rcp scout )"

RDEPEND="
       net-libs/webkit-gtk
       x11-libs/gtk+:3
       virtual/jre:11"

QA_PREBUILT="opt/eclipse-ide-bin-${PV}/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.linux.x86_64_*/jre/**/*.so"

src_install() {
       local dest="/opt/${PN}-${SLOT}"

       insinto "${dest}"
       doins -r *
       find "${ED}${dest}" -name "*.so" -type f -exec chmod +x {} + || die "Change .so permission failed"

       exeinto "${dest}"
       doexe eclipse

       docinto html
       dodoc -r readme/*

       insinto /etc
       cp "${FILESDIR}/eclipserc-bin" "${T}" || die "Move conf file to temporary directory failed"
       newins "${T}/eclipserc-bin" "eclipserc-bin-${SLOT}"

       cp "${FILESDIR}/eclipse-bin" "${T}" || die "Move run script file to temporary directory failed"
       sed "s@%SLOT%@${SLOT}@" -i "${T}/eclipse-bin" || die "Change script file version failed"
       newbin "${T}/eclipse-bin" "eclipse-bin-${SLOT}"

       # This is normally called automatically by java-pkg_dojar, which
       # hasn't been used above. We need to create package.env to help the
       # launcher select the correct VM.
       java-pkg_do_write_

       make_desktop_entry "eclipse-bin-${SLOT}" "Eclipse ${PV}" "${dest}/icon.xpm" "Development"
}

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2014

PostPosted: Sun Apr 09, 2023 10:12 am    Post subject: Re: [SOLVED] Error installing Eclipse IDE Reply with quote

marcelohsp wrote:
...
Is it still possible to install Eclipse IDE?
...

The is the cheat's way out, which I always use :-) :
download the appropriate Eclipse tarball, and unpack into /opt/eclipse. You might need to tweak some permissions, and create a desktop shortcut or equivalent to start it.

This bypasses the Gentoo way of doing things,but IMHO Eclipse is its own ecosystem, and it plays best if you just let it do its own thing. After all, the usual first step after installing Eclipse is to customize it by adding one of hundreds of other Eclipse packages (C development? project management? etc.) through Eclipse and not through Gentoo.
_________________
Greybeard
Back to top
View user's profile Send private message
marcelohsp
n00b
n00b


Joined: 11 Feb 2023
Posts: 40

PostPosted: Sun Apr 09, 2023 2:14 pm    Post subject: Reply with quote

fedeliallalinea wrote:
I had started to create an ebuild for eclipse but then I changed ide, maybe it can still help
eclipse-ide-bin-4.23.0.ebuild:
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit desktop java-pkg-2

SR="R"
RNAME="2022-03"
SRC_BASE="https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/${RNAME}/${SR}/eclipse"

DESCRIPTION="The Leading Open Platform for Professional Developers"
HOMEPAGE="http://www.eclipse.org"
SRC_URI="
       committers? ( ${SRC_BASE}-committers-${RNAME}-${SR}-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-committers-${RNAME}-${SR}-linux-gtk-x86_64-${PV}.tar.gz )
       cpp? ( ${SRC_BASE}-cpp-${RNAME}-${SR}-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-cpp-${RNAME}-${SR}-linux-gtk-x86_64-${PV}.tar.gz )
       computing? ( ${SRC_BASE}-parallel-${RNAME}-${SR}-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-parallel-${RNAME}-${SR}-linux-gtk-x86_64-${PV}.tar.gz )
       dsl? ( ${SRC_BASE}-dsl-${RNAME}-${SR}-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-dsl-${RNAME}-${SR}-linux-gtk-x86_64-${PV}.tar.gz )
       embedcpp? ( ${SRC_BASE}-embedcpp-${RNAME}-${SR}-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-embedcpp-${RNAME}-${SR}-linux-gtk-x86_64-${PV}.tar.gz )
       php? ( ${SRC_BASE}-php-${RNAME}-${SR}-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-php-${RNAME}-${SR}-linux-gtk-x86_64-${PV}.tar.gz )
       java? ( ${SRC_BASE}-java-${RNAME}-${SR}-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-${RNAME}-${SR}-linux-gtk-x86_64-${PV}.tar.gz )
       javaee? ( ${SRC_BASE}-jee-${RNAME}-${SR}-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-jee-${RNAME}-${SR}-linux-gtk-x86_64-${PV}.tar.gz )
       modeling? ( ${SRC_BASE}-modeling-${RNAME}-${SR}-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-modeling-${RNAME}-${SR}-linux-gtk-x86_64-${PV}.tar.gz )
       rcp? ( ${SRC_BASE}-rcp-${RNAME}-${SR}-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-rcp-${RNAME}-${SR}-linux-gtk-x86_64-${PV}.tar.gz )
       scout? ( ${SRC_BASE}-scout-${RNAME}-${SR}-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-scout-${RNAME}-${SR}-linux-gtk-x86_64-${PV}.tar.gz )
"
S="${WORKDIR}/eclipse"

LICENSE="EPL-1.0"
SLOT="$(ver_cut 1-2)"
KEYWORDS="~amd64"
IUSE="committers cpp computing dsl embedcpp php +java javaee modeling rcp scout"
REQUIRED_USE="^^ ( committers cpp computing dsl embedcpp php java javaee modeling rcp scout )"

RDEPEND="
       net-libs/webkit-gtk
       x11-libs/gtk+:3
       virtual/jre:11"

QA_PREBUILT="opt/eclipse-ide-bin-${PV}/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.linux.x86_64_*/jre/**/*.so"

src_install() {
       local dest="/opt/${PN}-${SLOT}"

       insinto "${dest}"
       doins -r *
       find "${ED}${dest}" -name "*.so" -type f -exec chmod +x {} + || die "Change .so permission failed"

       exeinto "${dest}"
       doexe eclipse

       docinto html
       dodoc -r readme/*

       insinto /etc
       cp "${FILESDIR}/eclipserc-bin" "${T}" || die "Move conf file to temporary directory failed"
       newins "${T}/eclipserc-bin" "eclipserc-bin-${SLOT}"

       cp "${FILESDIR}/eclipse-bin" "${T}" || die "Move run script file to temporary directory failed"
       sed "s@%SLOT%@${SLOT}@" -i "${T}/eclipse-bin" || die "Change script file version failed"
       newbin "${T}/eclipse-bin" "eclipse-bin-${SLOT}"

       # This is normally called automatically by java-pkg_dojar, which
       # hasn't been used above. We need to create package.env to help the
       # launcher select the correct VM.
       java-pkg_do_write_

       make_desktop_entry "eclipse-bin-${SLOT}" "Eclipse ${PV}" "${dest}/icon.xpm" "Development"
}


Thanks for this code. For me to try to emerge using it, the step Is to create eclipse-ide-bin-4.23.0.ebuild file in the directory /var/db/repos/eclipse/dev-util ? I did it and I tried to run "emerge dev-util/eclipse-ide-bin-4.23.0 but I got the return:

"
!!! 'dev-util/eclipse-ide-bin-4.23.0.ebuild' is not a valid package atom.
!!! Please check ebuild(5) for full details.
"

Could you please tell me which IDE did you choose for using?
Back to top
View user's profile Send private message
marcelohsp
n00b
n00b


Joined: 11 Feb 2023
Posts: 40

PostPosted: Sun Apr 09, 2023 2:24 pm    Post subject: Re: [SOLVED] Error installing Eclipse IDE Reply with quote

Goverp wrote:
marcelohsp wrote:
...
Is it still possible to install Eclipse IDE?
...

The is the cheat's way out, which I always use :-) :
download the appropriate Eclipse tarball, and unpack into /opt/eclipse. You might need to tweak some permissions, and create a desktop shortcut or equivalent to start it.

This bypasses the Gentoo way of doing things,but IMHO Eclipse is its own ecosystem, and it plays best if you just let it do its own thing. After all, the usual first step after installing Eclipse is to customize it by adding one of hundreds of other Eclipse packages (C development? project management? etc.) through Eclipse and not through Gentoo.


Thank you very much! I did the download of the appropriate Eclipse tarball and It worked! I could open the Eclipse. How could I create the desktop shortcut and let it available for the non-root user?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30965
Location: here

PostPosted: Sun Apr 09, 2023 3:24 pm    Post subject: Reply with quote

marcelohsp wrote:
Thanks for this code. For me to try to emerge using it, the step Is to create eclipse-ide-bin-4.23.0.ebuild file in the directory /var/db/repos/eclipse/dev-util ? I did it and I tried to run "emerge dev-util/eclipse-ide-bin-4.23.0 but I got the return:

You should create a local overlay.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2014

PostPosted: Sun Apr 09, 2023 6:47 pm    Post subject: Re: [SOLVED] Error installing Eclipse IDE Reply with quote

marcelohsp wrote:
...
How could I create the desktop shortcut and let it available for the non-root user?

I think it depends on your desktop. For KDE, which I use, you use Right mouse button (RMB) on the "Application Launcher" icon, and select "Edit applications" which opens the KDE Menu Editor. Then you navigate the tree show to where you want, RMB and select Add, and fill in the menus for your new application.
As far as I remember the icon for Eclipse lurks somewhere in your new /opt/eclipse directory; you can use it for your new application by RMB on the default icon you get.
There's something similar for Gnome, I think a menu editor somewhere in the System tools, but I'm guessing, I do not use Gnome.

I think for advanced users, you can add the application system-wide from root. (Take care if you try this stuff as root. I expect it's possible to make a mess !) Otherwise you just add it to your own user menu.

There are some cross-desktop applications - "xdg-desktop-menu" installs a "foo.desktop" menu into your system. Probably Eclipse includes one somewhere... I thought I had Eclipse installed on the box I'm using to write this, but it appears not, so I can't check. This stuff is all standardised by the XDG group.
_________________
Greybeard
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum