On Sun, Nov 06, 2005 at 04:20:36PM +0000, Albretch Mueller wrote: > Hi *, > > while installing java on an external drive using knoppix I got symlink > errors each time a symlink was tried out: > > ./jdk-1_5_0_05-linux-i586.bin > file 2>&1 > > after spacing out of the License Agreement and starting the installation I > got a total of actually 4 symlink errors, each and every time the > compilation tried linking a file or directory > > I have tried so far comp.lang.java.programmer (search the newsgroup for: > "symlink errors while installing java . . . "), and knoppix.net > (http://www.knoppix.net/forum/viewtopic.php?t=21924) and no one has > explained to me why this happens and how to troubleshoot this problem > > Also I find quite strange that when I search for these types of errors, > namely "symlink error: Operation not permitted", (using google) I don't > find anything other than my own post. > > What does this error actually mean? > > Why do these symlink errors happen? > > How do you fix them? >
These instructions are available somewhere on the web but seem to be hard to find. In any case, they have worked great for me and java installation goes without problems: 1) Download the J2SE JDK from sun Download the option under Linux Platform that says self-extracting file (the one whose filename ends in .bin), not the RPM one. 2) 2.1 Add deb sources for unstable Add the following lines to your /etc/apt/sources.list file. You should already have similar entries for testing there. # Unstable deb http://ftp.us.debian.org/debian unstable main contrib non-free deb http://non-us.debian.org/debian-non-US unstable/non-US main contrib non-free 3) 2.2 Edit APT preferences file Edit the /etc/apt/preferences file. If you don't have that file, just create a new one. Package: * Pin: release a=testing Pin-Priority: 650 Package: * Pin: release a=unstable Pin-Priority: 600 Pay attention to the priority values. The higher number the higher priority. 4) 2.4 Run apt-get update >apt-get update to update the lists of the available packages. 5) Install necessary packages It is now time to install the packages that allows for the creation of the deb archive of the Java installation file. And also fakeroot if one wishes to create deb archive as a regular user. Execute apt-get install java-package fakeroot 6) Create the Java deb package Then create the deb package of the Sun's Java installer by using make-jpkg In this example the Java 1.5.0 JRE is used. make-jpkg jre-1_5_0-linux-i586.bin (Works better as root) 7) If you are unsure, you can check your version of java-package by issuing the following command apt-cache policy java-package | grep Installed Note: VErsion 0.17 of java-package is minimum required. 8) Install the Java deb package Install the just created deb package. Example: dpkg -i sun-j2sdk1.5_1.5.0+final_i386.deb Note: Name of JDK is sun-j2sdk1.5 9) Now install package with Debian-specific things that corresponds to the .deb created. Example: apt-get install sun-j2sdk1.5debian 10) Some dependency problem error messages If you get some error that says something about dependency problems during the above commands, ignore them for now and just proceed with both of the above commands. And after both above commands, execute apt-get -f install that should solve any dependency issues left. 11) Setup path etc in .bashrc export JAVA_HOME=/usr/lib/j2sdk1.5-sun/[EMAIL PROTECTED]:/usr/lib/j2sdk1.5-sun/bin$ export PATH=$PATH:$JAVA_HOME HTH, Peter > // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > sh-3.00# whoami > root > > sh-3.00# gcc --version > gcc (GCC) 3.3.6 (Debian 1:3.3.6-7) > Copyright (C) 2003 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > sh-3.00# dmesg | grep -i 'linux version' > Linux version 2.6.12 ([EMAIL PROTECTED]) (gcc-Version 3.3.6 (Debian > 1:3.3.6-7)) > #2 SMP Tue Aug 9 23:20:52 CEST 2005 > > Is there anyoher piece of info you need from me? > > ... > creating: jdk1.5.0_05/jre/lib/i386/server/ > inflating: jdk1.5.0_05/jre/lib/i386/server/libjvm.so > inflating: jdk1.5.0_05/jre/lib/i386/server/Xusage.txt > linking: jdk1.5.0_05/jre/lib/i386/server/libjsig.so -> > ../libjsig.so symlink error: Operation not permitted > > creating: jdk1.5.0_05/jre/lib/i386/client/ > inflating: jdk1.5.0_05/jre/lib/i386/client/libjvm.so > inflating: jdk1.5.0_05/jre/lib/i386/client/Xusage.txt > linking: jdk1.5.0_05/jre/lib/i386/client/libjsig.so -> > ../libjsig.so symlink error: Operation not permitted > ... > creating: jdk1.5.0_05/jre/javaws/ > linking: jdk1.5.0_05/jre/javaws/javaws -> ../bin/javaws symlink > error: Operation not permitted > ... > linking: jdk1.5.0_05/man/ja -> ja_JP.eucJP symlink error: > Operation not permitted > // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact > [EMAIL PROTECTED] > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]