Linux - DistributionsThis forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Gentoo does not have a portage for this version of java:
j2sdk-1_4_2_05
I figured no problem I will just use the self extracting .bin from the java.sun site.
... I get this error message:
tail: `-1' option is obsolete; use `-n 1' since this will be removed in the future
Unpacking...
tail: cannot open `+486' for reading: No such file or directory
Checksumming...
1
The download file appears to be corrupted. Please refer
to the Troubleshooting section of the Installation
Instructions on the download page for more information.
Please do not attempt to install this archive file.
my first thaught was oh ok bad download so I re-download..... same problem..
suspecting the file is fine I scp'd it to a slackware box and ran it... no problems.
Take a look around your /usr/portage directory. . . it has everything.
If you just type "emerge foo" you will get the standard ebuild, but if you give an exact ebuild from your protage tree then you will get exactly what you want.
I just encountered the same problem. Emerging 1.4.2_05 doesn't seem to be an option if you want the SDK. I dug into the installer a little bit and found the problems. It appears that the gentoo 'tail' command doesn't support the + options anymore unless they are prefixed by -n. For some reason the 'sum' output was incorrect with one of the values too, so disabling that check was necessary.
Create a file called java.patch containing the following:
Code:
--- j2sdk-1_4_2_05-linux-i586.bin 2004-08-16 21:16:49.802123744 -0400
+++ j2sdk-1_4_2_05-linux-i586.bin.mod 2004-08-16 21:09:42.838032152 -0400
@@ -330,7 +330,7 @@
esac
done
outname=install.sfx.$$
-diskSpace=`df -k . | tail -1 | awk '{if ( $4 ~ /%/) { print $3 } else { print $4 } }'`
+diskSpace=`df -k . | tail -n1 | awk '{if ( $4 ~ /%/) { print $3 } else { print $4 } }'`
if [ $diskSpace -lt $diskSpaceRequired ]; then
printf "You will need atleast %s kBytes of Disk Free\n" $diskSpaceRequired
printf "Please free up the required Disk Space and try again\n"
@@ -338,8 +338,8 @@
fi
trap 'rm -f $outname; exit 1' HUP INT QUIT TERM
echo "Unpacking..."
-tail +486 $0 > $outname
-if [ -x /usr/bin/sum ] ; then
+tail -n+486 $0 > $outname
+if [ -x /usr/bin/xsum ] ; then
echo "Checksumming..."
sum=`/usr/bin/sum $outname`
Then, run the following command:
Code:
patch j2sdk-1_4_2_05-linux-i586.bin < java.patch
That will fix the 'tail' problems and disable the checksum check. Then the install works perfect!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.