Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Netbeans 8.0.2 Disappears Even After Emerge -C/install
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
jlpoole
Guru
Guru


Joined: 01 Nov 2005
Posts: 488
Location: Salem, OR

PostPosted: Thu Jun 04, 2015 1:07 am    Post subject: Netbeans 8.0.2 Disappears Even After Emerge -C/install Reply with quote

I installed netbeans 8.0.2 (using Oracle JDK 7, not 8 which will trigger a bug in Gentoo's java chain) and all was well. I ran several sessions. At startup Netbeans said it was missing Jinit, so I would use Netbean's facility to automatically install it within Netbeans. The installer said it reached 100% and then it hung. I had to kill netbeans. Thereafter, my attempt to run netbeans failed:
Code:
themis ~ # netbeans-8.0
-bash: /usr/bin/netbeans-8.0: No such file or directory
themis ~ #

So I tried emerging again (in Java 1-7):
Code:
emerge dev-util/netbeans

It completed fine. When I tried to run netbeans, same error. So there was a soft link that was dated from my first install, so I removed the soft link hoping after another emerge might trigger further installation. I then
Code:
emerge -C dev-util/netbeans

and then
Code:
emerge dev-util/netbeans

Still have the same problem "No such file..."
After the emerge install, the soft link is not present:
Quote:
themis ~ # ls /usr/bin/net*
/usr/bin/nettle-hash /usr/bin/nettle-lfib-stream
themis ~ #


I then checked my JAVA based environmental variables:
Quote:

themis ~ # set |grep JAV
JAVAC=/etc/java-config-2/current-system-vm/bin/javac
JAVACC_HOME=/usr/share/javacc/
JAVA_HOME=/etc/java-config-2/current-system-vm
themis ~ #


I tried unsetting JAVACC_HOME, emerging again and no change. I tried starting a new shell and the JAVACC_HOME was set to /usr/share/javacc.

This is very odd behavior? Did Netbeans auto installer trash a setting within Gentoo's Java framework? Anyone have a recommendation of what to try next?
Back to top
View user's profile Send private message
jlpoole
Guru
Guru


Joined: 01 Nov 2005
Posts: 488
Location: Salem, OR

PostPosted: Thu Jun 04, 2015 1:13 am    Post subject: Reply with quote

Suspecting that Netbeans trashed the Oracle 1.7 java install, I re-emerge Oracle Java 1.7 and then netbeans:

Quote:
themis ~ # emerge dev-util/netbeans
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-util/netbeans-8.0.2::gentoo
* Using: oracle-jdk-bin-1.7
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/dev-util/netbeans-8.0.2/work
>>> Preparing source in /var/tmp/portage/dev-util/netbeans-8.0.2/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-util/netbeans-8.0.2/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-util/netbeans-8.0.2/work ...
>>> Source compiled.
>>> Test phase [not enabled]: dev-util/netbeans-8.0.2

>>> Install netbeans-8.0.2 into /var/tmp/portage/dev-util/netbeans-8.0.2/image/ category dev-util
>>> Completed installing netbeans-8.0.2 into /var/tmp/portage/dev-util/netbeans-8.0.2/image/


>>> Installing (1 of 1) dev-util/netbeans-8.0.2::gentoo
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

* GNU info directory index is up-to-date.
themis ~ # ls /usr/bin/net*
/usr/bin/nettle-hash /usr/bin/nettle-lfib-stream
themis ~ # set |grep JAV
JAVAC=/etc/java-config-2/current-system-vm/bin/javac
JAVACC_HOME=/usr/share/javacc/
JAVA_HOME=/etc/java-config-2/current-system-vm
themis ~ # eselect java-vm list
Available Java Virtual Machines:
[1] icedtea-bin-7
[2] oracle-jdk-bin-1.7 system-vm
[3] oracle-jdk-bin-1.8

themis ~ #


Still, netbeans does not appear under /usr/bin.
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1791

PostPosted: Thu Jun 04, 2015 1:30 am    Post subject: Reply with quote

one thing you may do, is run equery f on the package, and see where the files are located. I'm going to guess that netbeans is being into into /opt and your env is not referencing the it over there.
Back to top
View user's profile Send private message
jlpoole
Guru
Guru


Joined: 01 Nov 2005
Posts: 488
Location: Salem, OR

PostPosted: Thu Jun 04, 2015 1:32 am    Post subject: Reply with quote

Quote:
themis share # equery f dev-util/netbeans
* Searching for netbeans in dev-util ...
* Contents of dev-util/netbeans-8.0.2:
themis share #


looks kinda empty, huh?
Back to top
View user's profile Send private message
jlpoole
Guru
Guru


Joined: 01 Nov 2005
Posts: 488
Location: Salem, OR

PostPosted: Thu Jun 04, 2015 1:42 am    Post subject: Reply with quote

i performed an "updatedb" and "locate" for netbeans:
Code:
themis share # ls -la /usr/share/netbeans-ide-8.0
total 96
drwxr-xr-x   8 root root  4096 Jun  3 07:48 .
drwxr-xr-x 270 root root 12288 Jun  3 08:33 ..
drwxr-xr-x   3 root root  4096 Jun  3 07:48 bin
drwxr-xr-x   4 root root  4096 Jun  3 07:48 config
drwxr-xr-x   3 root root  4096 Jun  3 07:48 docs
drwxr-xr-x   2 root root  4096 Jun  3 07:48 jsstubs
-rw-r--r--   1 root root 10451 Jun  3 07:48 moduleCluster.properties
drwxr-xr-x   5 root root 24576 Jun  3 07:48 modules
drwxr-xr-x   2 root root 24576 Jun  3 07:48 update_tracking
-rw-r--r--   1 root root    42 Jun  3 07:48 VERSION.txt
themis share #

The date timestamp of Jun 3 7:48 was from this morning when I installed it and things were working fine. It looks like from above the ebuild did not uninstall the package, or the Jinit update moved things about unknown to the ebuild.
Back to top
View user's profile Send private message
jlpoole
Guru
Guru


Joined: 01 Nov 2005
Posts: 488
Location: Salem, OR

PostPosted: Sat Jun 06, 2015 11:08 pm    Post subject: Reply with quote

I logged a bug https://bugs.gentoo.org/show_bug.cgi?id=551368

While working on that, I found the problem and hacked a fix, see the bug for the work-around.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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