View previous topic :: View next topic |
Author |
Message |
Djingis Kan n00b
Joined: 16 Jul 2005 Posts: 20
|
Posted: Fri Jun 30, 2006 11:46 am Post subject: Problems with remerging java using java-check-enviro[SOLVED] |
|
|
Hello,
I just tried to get java 1.5 working (it worked before, but now I used the manual from http://www.gentoo.org/proj/en/java/java-upgrade.xml).
Steps 1-4 worked fine, but now at step 5 java-check-environment told me to delete the old config files and remerge Code: | emerge -atv =sun-jdk-1.4* =sun-jdk-1.5* =sun-jre-bin-1.5* | (actually blackdown-jdk was also on the list, but I don't need it anymore and it had the same problem).
But the remerge fails with the message:
Code: | Archive: /usr/portage/distfiles/jce_policy-1_4_2.zip
creating: jce/
inflating: jce/local_policy.jar
inflating: jce/US_export_policy.jar
inflating: jce/README.txt
inflating: jce/COPYRIGHT.html
ln: creating symbolic link `/home/tmp/portage/sun-jdk-1.4.2.12/image//usr/lib/jvm/sun-jdk-1.4' to `/opt/sun-jdk-1.4.2.12': No such file or directory
!!! ERROR: dev-java/sun-jdk-1.4.2.12 failed.
!!! Function set_java_env, Line 117, Exitcode 1
!!! Failed to make VM symlink at /usr/lib/jvm/
!!! If you need support, post the topmost build error, NOT this status message. |
And like I said, blackdown-jdk failed with the same error.
Can anyone tell me what to do?
Regards,
Kan
Last edited by Djingis Kan on Fri Jun 30, 2006 3:22 pm; edited 1 time in total |
|
Back to top |
|
|
nichoj Retired Dev
Joined: 15 Aug 2005 Posts: 66
|
Posted: Fri Jun 30, 2006 2:04 pm Post subject: |
|
|
That's pretty odd... Is /opt on it's own permission, and is there anything up with it...?
I will poke around to see if I can spot anything out of the ordinary. _________________ Joshua Nichols
Gentoo/Ruby Developer |
|
Back to top |
|
|
nichoj Retired Dev
Joined: 15 Aug 2005 Posts: 66
|
Posted: Fri Jun 30, 2006 2:09 pm Post subject: |
|
|
The error suggests that /home/tmp/portage/sun-jdk-1.4.2.12/image//usr/lib/jvm/ doesn't exist, such that you can't put a symlink into a non-existant directory. dosym, which makes the symlink, should ensure that the directory exist.
What version of portage are you using? Please try with the most recent version. _________________ Joshua Nichols
Gentoo/Ruby Developer |
|
Back to top |
|
|
Djingis Kan n00b
Joined: 16 Jul 2005 Posts: 20
|
Posted: Fri Jun 30, 2006 2:51 pm Post subject: |
|
|
Hi,
thanks, the version was 2.0.54-r2. An update seems to have solved it.
Two of the three are now completed (third running).
Kan |
|
Back to top |
|
|
nichoj Retired Dev
Joined: 15 Aug 2005 Posts: 66
|
Posted: Fri Jun 30, 2006 3:00 pm Post subject: |
|
|
I'm glad that fixed the problem. I added an update that should depend on >=portage-2.1, which should prevent this for happening for others. _________________ Joshua Nichols
Gentoo/Ruby Developer |
|
Back to top |
|
|
|