Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6693938

JDK and JRE RPM package installation cannot create symbolic links to non-default directory

XMLWordPrintable

    • generic, x86
    • linux, linux_redhat_5.0

      Here is the log of the JDK RPM installation:

      [root@localhost regular]# rpm -ivh jdk-1_5_0_14-linux-i586.rpm --prefix /xufei
      Preparing... ########################################### [100%]
         1:jdk ########################################### [100%]
      ln: creating symbolic link `/usr/java/jdk1.5.0_14' to `/xufei/jdk1.5.0_14': No
      such file or directory
      Error: unpack command could not be found. Please refer to the
      TroubleShooting Section of the Installation Instructions on
      the download page.
      Please do not attempt to install this archive file.
      error: %post(jdk-1.5.0_14-fcs.i586) scriptlet failed, exit status 2

      #Uninstall logs:
      [root@localhost egtc]# rpm -e jdk
      touch: cannot touch `/usr/java/jdk1.5.0_14/lib/tools.pack': No such file or
      directory
      touch: cannot touch `/usr/java/jdk1.5.0_14/jre/lib/rt.pack': No such file or
      directory
      touch: cannot touch `/usr/java/jdk1.5.0_14/jre/lib/jsse.pack': No such file or
      directory
      touch: cannot touch `/usr/java/jdk1.5.0_14/jre/lib/charsets.pack': No such file
      or directory
      touch: cannot touch `/usr/java/jdk1.5.0_14/jre/lib/ext/localedata.pack': No
      such file or directory
      touch: cannot touch `/usr/java/jdk1.5.0_14/jre/lib/plugin.pack': No such file
      or directory
      touch: cannot touch `/usr/java/jdk1.5.0_14/jre/lib/javaws.pack': No such file
      or directory
      touch: cannot touch `/usr/java/jdk1.5.0_14/jre/lib/deploy.pack': No such file
      or directory


      Here is a JRE RPM installation log:

      #Install logs:
      [root@localhost egtc]# rpm -ivh jre-1_5_0_14-linux-i586.rpm --prefix /jre/
      Preparing... ########################################### [100%]
         1:jre ########################################### [100%]
      ln: creating symbolic link `/usr/java/jre1.5.0_14' to `/jre/jre1.5.0_14': No such file or directory
      Error: unpack command could not be found. Please refer to the
      TroubleShooting Section of the Installation Instructions on
      the download page.
      Please do not attempt to install this archive file.
      error: %post(jre-1.5.0_14-fcs.i586) scriptlet failed, exit status 2

            dmalav Dinesh Malav (Inactive)
            dleansunw Danny Lean (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: