View previous topic :: View next topic |
Author |
Message |
Paper Tux's lil' helper
Joined: 02 Jul 2002 Posts: 79 Location: Milan, Italy
|
Posted: Thu Aug 01, 2002 11:28 am Post subject: sun-jdk source ebuild |
|
|
Hi all!
Is anybody out there working on a sun-jdk source ebuild?
I'm compiling right now the jdk from scratch with gcc3.2 but I was wondering if there an ebuild somewhere ... it could save me from terribles headaches
Byeeee -Paper- |
|
Back to top |
|
|
Lasker Guru
Joined: 17 Jul 2002 Posts: 445
|
Posted: Thu Aug 01, 2002 11:51 am Post subject: Re: sun-jdk source ebuild |
|
|
Paper wrote: | Hi all!
Is anybody out there working on a sun-jdk source ebuild?
|
What do you mean? It's present already but don't work (not for me at least).
I get: Code: |
bash-2.05a# emerge sun-jdk
Calculating dependencies ...done!
>>> emerge dev-java/sun-jdk-1.4.0-r5 to /
>>> Unpacking source...
!!! ERROR: The ebuild did not complete successfully.
!!! Function src_unpack, Line 2, Exitcode 0
!!! Please download j2sdk-1_4_0_01-linux-i586.bin from http://java.sun.com/j2se/1.4/download.html (select the "Linux GNUZIP Tar shell script" package format of the SDK) and move it to /usr/portage/distfiles
!!! emerge aborting on /usr/portage/dev-java/sun-jdk/sun-jdk-1.4.0-r5.ebuild .
bash-2.05a# |
Maybe it's because I have already blackdown-jdk / jre installed and the ebuild don't recognize it? |
|
Back to top |
|
|
Paper Tux's lil' helper
Joined: 02 Jul 2002 Posts: 79 Location: Milan, Italy
|
Posted: Thu Aug 01, 2002 12:01 pm Post subject: |
|
|
The ebuild that your are trying to emerge will install the binary version of the jdk, without the need to build it.
What I'm looking for (well, I shouldn't need as compiling from scratch isn't too much of a pain) is an ebuild that *compile* the jdk from source! (... the same old gcc3 abi problem, for those who know ...)
Your problem is easy to solve.
The sun-jdk ebuild does not contain the real SDK, because of licensing issues. The error you get tells you to download j2sdk-1_4_0_01-linux-i586.bin from http://java.sun.com/j2se/1.4/download.html and put it in /usr/portage/distfiles.
Now download the file, put it in the right place and rerun emerge and everything should run smoothly
Bye -Paper- |
|
Back to top |
|
|
Lasker Guru
Joined: 17 Jul 2002 Posts: 445
|
Posted: Thu Aug 01, 2002 12:04 pm Post subject: |
|
|
Thanks. I guess I have to unmerge blackdown java before? |
|
Back to top |
|
|
Paper Tux's lil' helper
Joined: 02 Jul 2002 Posts: 79 Location: Milan, Italy
|
Posted: Thu Aug 01, 2002 12:07 pm Post subject: |
|
|
no, no need to unmerge it.
you can have both installed. to switch from one to the other you can use java-config (read its man page, it's really easy to use).
Bye -Paper- |
|
Back to top |
|
|
rizzo Retired Dev
Joined: 30 Apr 2002 Posts: 1067 Location: Manitowoc, WI, USA
|
Posted: Thu Aug 01, 2002 12:47 pm Post subject: |
|
|
Lasker, read the error you are getting:
Code: | !!! Please download j2sdk-1_4_0_01-linux-i586.bin from http://java.sun.com/j2se/1.4/download.html (select the "Linux GNUZIP Tar shell script" package format of the SDK) and move it to /usr/portage/distfiles |
You need to download the installer from Sun's website and put it in the distfiles directory. Same with IBM's JDK. Licensing issues prevent portage from "legally" automatically downloading the file.
It has nothing to do with what other JDK's you do/don't have installed. I have both Sun and IBM JDKs. Just read the instructions and things work swell. |
|
Back to top |
|
|
|