Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error when trying to emerge netbeans [SOLVED]
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
Liox
n00b
n00b


Joined: 07 Apr 2004
Posts: 20

PostPosted: Wed Dec 12, 2007 10:38 pm    Post subject: Error when trying to emerge netbeans [SOLVED] Reply with quote

Hello,

I tried to install netbeans but I get an error at an pakage netbeans seems to depend on:
>>> Emerging (1 of 1) dev-java/backport-util-concurrent-3.0 to /
* backport-util-concurrent-3.0-src.zip RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking backport-util-concurrent-3.0-src.zip ;-) ... [ ok ]
Traceback (most recent call last):
File "/usr/bin/depend-java-query", line 85, in ?
(options, args) = parser.parse_args()
File "/usr/lib/python2.4/optparse.py", line 1277, in parse_args
stop = self._process_args(largs, rargs, values)
File "/usr/lib/python2.4/optparse.py", line 1317, in _process_args
self._process_long_opt(rargs, values)
File "/usr/lib/python2.4/optparse.py", line 1392, in _process_long_opt
option.process(opt, value, values, self)
File "/usr/lib/python2.4/optparse.py", line 709, in process
return self.take_action(
File "/usr/lib/python2.4/optparse.py", line 728, in take_action
self.callback(self, opt, value, parser, *args, **kwargs)
File "/usr/bin/depend-java-query", line 49, in get_vm
vm = verman.get_vm(value)
File "/usr/share/java-config-2/pym/java_config/VersionManager.py", line 154, in get_vm
raise Exception("Couldn't find suitable VM. Possible invalid dependency string.")
Exception: Couldn't find suitable VM. Possible invalid dependency string.
* Unable to determine VM for building from dependencies:
NV_DEPEND: java5? ( =virtual/jdk-1.5* )
!java5? ( =virtual/jdk-1.4* )
test? ( =dev-java/junit-3* )
app-arch/unzip >=dev-java/java-config-2.0.33-r1 >=sys-apps/portage-2.1.2.7 source? ( app-arch/zip ) >=dev-java/javatoolkit-0.2.0-r1 >=sys-apps/portage-2.1.2.7 dev-java/ant-core
VNEED:
*
* ERROR: dev-java/backport-util-concurrent-3.0 failed.
* Call stack:
* ebuild.sh, line 1717: Called dyn_setup
* ebuild.sh, line 768: Called qa_call 'pkg_setup'
* ebuild.sh, line 44: Called pkg_setup
* ebuild.sh, line 1383: Called java-pkg-2_pkg_setup
* java-pkg-2.eclass, line 54: Called java-pkg_init
* java-utils-2.eclass, line 2106: Called java-pkg_switch-vm
* java-utils-2.eclass, line 2527: Called die
* The specific snippet of code:
* die "Failed to determine VM for building."
* The die message:
* Failed to determine VM for building.
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/dev-java/backport-util-concurrent-3.0/temp/build.log'.
*
!!! When you file a bug report, please include the following information:
GENTOO_VM= CLASSPATH="." JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info

* Messages for package dev-java/backport-util-concurrent-3.0:


I checked all pakages mentioned at NV_DEPEND: and every single one is installed yet.
So what's wrong?
Any ideas?


Last edited by Liox on Thu Dec 13, 2007 12:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
Liox
n00b
n00b


Joined: 07 Apr 2004
Posts: 20

PostPosted: Thu Dec 13, 2007 11:45 am    Post subject: Reply with quote

I have checked this morning my java environment and it tells me:

* Checking generation_1_system_vm ...
* No Generation-1 System VM is set! (no /etc/env.d/20java)
* It doesn't look like java-config-1 sees any installed VMs.
* It is most likely because you don't have a 1.4 JDK installed
* This is required for generation-1 to work properly.
* You will want to emerge =virtual/jdk-1.4* [ !! ]

so I remerged virtual/jdk-1.4*, but it doesnt help.
if I call java-config-1 -L it shows me no jdk
I followed the instruction on the Gentoo Java Upgrade Guide but this helps either.
So I had a look at the wiki . The solution of the first problem tells me: Specifically, ensure that you have keyworded all the packages related to the new Java system. But what they mean with "keyworded" How do I keyword my java System?

Thanks for help...
Back to top
View user's profile Send private message
STreen
n00b
n00b


Joined: 06 Jun 2006
Posts: 70

PostPosted: Thu Dec 13, 2007 11:58 am    Post subject: Reply with quote

Quote:
But what they mean with "keyworded" How do I keyword my java System?

Add the concerned packages to /etc/portage/package.keywords ?
Don't know if this would make sense though, as it would allow emerge to install packages marked as unstable for your architecture.
Perhaps it just wants to ensure that every needed package gets merged even though it's in the unstable tree ?
Back to top
View user's profile Send private message
Liox
n00b
n00b


Joined: 07 Apr 2004
Posts: 20

PostPosted: Thu Dec 13, 2007 12:53 pm    Post subject: Reply with quote

So now I just reemerged blackdown-jdk and it installed an update to 1.4.2.03-r15. Now everthing seems alright. The java environment is in a sane state and the error disappeared. Now I have to install another 76 pakages. I hope this goes through without an error. Thanks for your reading.
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