From: Peter.Robinson@t-online.de
To: debian-user@lists.debian.org
Subject: Re: symlink errors while installing java (Sun's jdk)
Date: Sun, 6 Nov 2005 20:52:36 +0100
MIME-Version: 1.0
Received: from murphy.debian.org ([146.82.138.6]) by mc9-f36.hotmail.com
with Microsoft SMTPSVC(6.0.3790.211); Sun, 6 Nov 2005 11:53:49 -0800
Received: from localhost (localhost [127.0.0.1])by murphy.debian.org
(Postfix) with QMQPid E6A542E20F; Sun, 6 Nov 2005 13:52:40 -0600 (CST)
Received: from mailout07.sul.t-online.com (mailout07.sul.t-online.com
[194.25.134.83])by murphy.debian.org (Postfix) with ESMTP id 6A0792DF04for
<debian-user@lists.debian.org>; Sun, 6 Nov 2005 13:52:38 -0600 (CST)
Received: from fwd34.aul.t-online.de by mailout07.sul.t-online.com with
smtp id 1EYqZC-0006r1-01; Sun, 06 Nov 2005 20:52:38 +0100
Received: from localhost.localdomain
(Vmy6CEZQreDtYskxnC7GUX3K2neCB4PxgbGVvrGiC-e9Lpt8zQg2rm@[84.190.213.232])
by fwd34.sul.t-online.dewith esmtp id 1EYqZ9-0d8AVc0; Sun, 6 Nov 2005
20:52:35 +0100
Received: from peter by localhost.localdomain with local (Exim 4.54)id
1EYqZA-0001dN-DJfor debian-user@lists.debian.org; Sun, 06 Nov 2005 20:52:36
+0100
X-Message-Info: JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPtfpLB7P/ybN8=
Old-Return-Path: <Peter.Robinson@t-online.de>
X-Original-To: debian-user@lists.debian.org
References: <[🔎] BAY101-F259E024264CA9315F92F4FB4620@phx.gbl>
User-Agent: Mutt/1.5.11
X-ID: Vmy6CEZQreDtYskxnC7GUX3K2neCB4PxgbGVvrGiC-e9Lpt8zQg2rm
X-TOI-MSGID: f7ceaf24-b203-4de9-8295-639dc2ed48c9
X-Rc-Virus: 2005-08-24_01
X-Rc-Spam: 2005-09-11_01
X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on
murphy.debian.org
X-Spam-Level: X-Spam-Status: No, score=-2.8 required=4.0
tests=AWL,IMPRONONCABLE_2,LDOSUBSCRIBER,NO_REAL_NAME,URIBL_SBL autolearn=no
version=3.0.3
Resent-Message-ID: <iIn_U.A.l9C.I8lbDB@murphy>
Resent-From: debian-user@lists.debian.org
X-Mailing-List: <debian-user@lists.debian.org> archive/latest/416244
X-Loop: debian-user@lists.debian.org
List-Id: <debian-user.lists.debian.org>
List-Post: <mailto:debian-user@lists.debian.org>
List-Help: <mailto:debian-user-request@lists.debian.org?subject=help>
List-Subscribe:
<mailto:debian-user-request@lists.debian.org?subject=subscribe>
List-Unsubscribe:
<mailto:debian-user-request@lists.debian.org?subject=unsubscribe>
Precedence: list
Resent-Sender: debian-user-request@lists.debian.org
Resent-Date: Sun, 6 Nov 2005 13:52:40 -0600 (CST)
Return-Path: bounce-debian-user=lbrtchx=hotmail.com@lists.debian.org
X-OriginalArrivalTime: 06 Nov 2005 19:53:49.0740 (UTC)
FILETIME=[CE6E2EC0:01C5E30B]
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/binpeter@anna:/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 (root@Knoppix) (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 debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org