Sun Studio 12 Installation Reference Guide (English, Japanese, Simplified Chinese)

Installing in a Directory That Is Reached by a Symbolic Link

You can install in a directory where part of the path is a symbolic link. An example for installing in a path reached by a symbolic link is if the default directory /opt does not have enough disk space. You need to complete the steps below to prevent the installer from bypassing the symbolic link and installing in an actual filesystem.


Note –

For example, if you choose to install in /opt, the following steps show you how to create a symbolic link of /opt/SUNWspro that points to /export/opt_SUNWspro. You can substitute your directory names for the example names.


ProcedurePreventing the Installer from Bypassing the Symbolic Link

  1. Become a superuser (root) by typing:


    su
    Password: root-password
    
  2. Save the existing symbolic link by typing:


    mv /opt/SUNWspro /mytemp
    
  3. Make a new /opt/SUNWspro directory, which will serve as a mount point, by typing:


    mkdir /opt/SUNWspro
    
  4. Mount the target directory so it is available as /opt/SUNWspro by typing:


    mount -F lofs localhost:/export/opt_SUNWspro /opt/SUNWspro
    
  5. Install the product in the /opt directory.

  6. Unmount the target directory by typing:


    umount /opt/SUNWspro
    
  7. Remove the empty /opt/SUNWspro mount point by typing:


    rmdir /opt/SUNWspro
    
  8. Restore the symbolic link that you moved in step 2:


    mv /mytemp /opt/SUNWspro
    
  9. Exit from superuser privileges by typing:


    exit