Sun Studio 12 Quick Installation

ProcedureUsing the Batch Installer

  1. If you are not currently superuser (root), become superuser by typing:


    su
    Password: root-password
    
  2. In the directory that contains the batch_installer command, run the command to view the software license agreement:


    ./batch_installer --show-sla
    
  3. Do one of the following:

    • Run the system preparation tool once to check your system for the prerequisite software and again, if necessary, to install any missing software. Then run the batch installer to accept the software license agreement and install the Sun Studio 12 software.


      ./prepare_system -C 
      ./prepare_system -s missing_software_name,missing_software_name,...
      ./batch_installer --accept-sla
      

      To install the Sun Studio 12 software in a directory other than /opt, specify the installation directory with the -d option.

    • Run the batch installer to check for the required prerequisite software and install any missing software, accept the software license agreement, and install the Sun Studio 12 software.


      ./batch_installer -p all --accept-sla 
      

      To install the Sun Studio 12 software in a directory other than /opt, specify the installation directory with the -d option.

  4. Type the following to determine whether you need to set up your access to the Sun Studio 12 software tools and man pages:


    /usr/bin/version
    
    1. If you receive the message /usr/bin/version: not found or the command reports an earlier version of Sun Studio software, see Setting Up Access to the Developer Tools and Man Pages for information on setting your PATH and MANPATH to point to the Sun Studio 12 software.

    2. If the command reports Sun Studio 12 software, you do not need to set your PATH and MANPATH.