sun.com docs.sun.com My Sun Worldwide Sites

Previous Previous     Contents     Next Next
Chapter 2

Installing the Sun Studio 12 Software

This chapter includes information about the following:

  • Installing on a Single-User System

  • Installing on a Server for Use by Clients

  • Installing on a Solaris 10 OS System With Zones

  • Using the Batch Installer

  • Using the Graphical User Interface Installer

  • Using the Command-Line Installer

Installing on a Single-User System

You can install the Sun Studio 12 software and the required additional 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. Run the batch_installer 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 required 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. To install the Sun Studio 12 software in a directory other than /opt, specify the installation directory with the -d option.

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

      To set up your access to the Sun Studio 12 software tools and man pages, set your PATH and MANPATH variables by following the steps in Setting Up Access to the Developer Tools and Man Pages.

    • 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. To install the Sun Studio 12 software in a directory other than /opt, specify the installation directory with the -d option.

      ./batch_installer -p all --accept_sla 

    To set up your access to the Sun Studio 12 software tools and man pages, set your PATH and MANPATH variables by following the steps in Setting Up Access to the Developer Tools and Man Pages.

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 download directory, start the installer by typing:

    ./installer

  3. On the Software License Agreement page, click Accept.

  4. On the Select Type of Installation page, choose Typical.

  5. On the System Analysis page, install any missing prerequisite software by clicking its button. To install the Sun Studio 12 software in a directory other than /opt, specify the installation directory.

  6. On the Select Components page, click the checkbox for any component you do not want to install.

  7. Proceed through the remaining pages to complete the installation.

  8. To set up your access to the Sun Studio 12 software tools and man pages, set your PATH and MANPATH variables by following the steps in Setting Up Access to the Developer Tools and Man Pages.

ProcedureUsing the Command-Line Installer

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

    su
    Password: root-password

  2. Currently you must run the system preparation tool from the command line to install the any missing prerequisite software before running the command-line installer. Type the following to determine which prerequisite software is missing:

    ./prepare_system -C

    If no missing software is listed, proceed to step 3. Otherwise install the missing software by typing:

    ./prepare_system -s missing_software_name missing_software_name ...

  3. In the download directory, start the installer by typing:

    ./installer -nodisplay

  4. Read and accept the Software License Agreement.

  5. Select Typical install.

  6. Specify the installation directory.

  7. Deselect any software component you do not want to install.

  8. Follow the installer instructions to complete the installation.

  9. To set up your access to the Sun Studio 12 software tools and man pages, set your PATH and MANPATH variables by following the steps in Setting Up Access to the Developer Tools and Man Pages.

Installing on a Server for Use by Clients With the Same Architecture

You can install the Sun Studio 12 software on a server for use by client systems with the same architecture. You can include the system preparation tool in the installed product to be used for installing the prerequisite software on each client system.

The simplest way to install the software on a server 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. Run the batch_installer command to view the software license agreement:

    ./batch_installer --show-sla

  3. Run the batch_installer command to accept the software license agreement, and install the Sun Studio 12 software on the server:

    ./batch_installer --accept-sla

  4. On each client system, mount the dvd image /download_directory/platform/c_installers/dvd_image_universal on the server and run the system preparation tool to check for the prerequisite software on the client system:

    ./prepare_system -C

    Install any listed missing software on the client system by typing:

    ./prepare_system -s missing_software_name missing_software_name ...

  5. To set up your access to the Sun Studio 12 software tools and man pages on the server, set your PATH and MANPATH variables on the client system by following the steps in Setting Up Access to the Developer Tools and Man Pages.

Previous Previous     Contents     Next Next
Company Info Contact Terms of Use Privacy Copyright 1994-2007 Sun Microsystems, Inc.