Sun Studio 12 Quick Installation (English, Japanese, Simplified Chinese)

Installing on a Single-User System

You can install the Sun Studio 12 software and the prerequisite software on a single-user system.

The simplest way to install the software on a single-user system is to use the batch installer. However, the batch installer installs all components of the Sun Studio 12 software. If you want to choose which components of the software to install, you must use the graphical user interface installer or command-line installer.

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.

      The available recommended product patches are installed by default. If you do not want to install these patches, specify the --no-prodpatch 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.

      The available recommended product patches are installed by default. If you do not want to install these patches, specify the --no-prodpatch 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.

ProcedureUsing the Graphical User Interface Installer

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


    su
    Password: root-password
    
  2. In the directory that contains the installer, start the installer by typing:


    ./installer &
    
  3. On the Software License Agreement page, click Yes (Accept License).

  4. On the Locale Selection page, click the Japanese checkbox or the Chinese checkbox if you want to install the localized Sun Studio 12 software in either of these languages.

  5. On the Select Components page, click the checkbox to delete the check mark for any component you do not want to install. If you want to install only selected subcomponents of the Sun Studio 12 Compilers and Tools component, click the + icon to expand the component, and click the checkbox for any subcomponent you do not want to install.

  6. On the Select Options page:

    1. If the Missing prerequisites field lists any missing prerequisite software, the installer will install the missing software unless you click the Update checkbox to delete the check mark.

    2. To install the Sun Studio 12 software in a directory other than /opt, type the directory name in the Installation directory field. If you have previously installed some components of the Sun Studio 12 software, the Installation directory field displays that installation directory, and the installer will install additional components in the same directory.

  7. Proceed to the Ready to Install page to install the software, and to the remaining pages to complete the installation.

  8. 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 yourPATH and MANPATH.

ProcedureUsing the Command-Line Installer

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


    su
    Password: root-password
    
  2. In the directory that contains the installer, start the installer by typing:


    ./installer -nodisplay
    
  3. Read the Software License Agreement and accept it by typing yes.

  4. Deselect any software component or subcomponent you do not want to install.

  5. Select the Chinese locale or the Japanese locale if you want to install the localized Sun Studio 12 software in either of these languages.

  6. If the installer reports that any prerequisite software is missing, install the missing software by choosing Update All Prerequisites.

  7. If you have previously installed some components of the Sun Studio 12 software, the installer will install additional components in the same directory. If you have not previously installed any components of the software, and you want to install the Sun Studio 12 software in a directory other than /opt, specify the installation directory.

  8. Select Skip advanced options.

  9. Follow the installer instructions to complete the installation.

  10. If you installed the Sun Studio 12 software on a single-user system, 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 yourPATH and MANPATH.