Sun Studio 12 Installation Reference Guide

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