Sun Studio 12 Installation Reference Guide

Chapter 1 Installing the Sun Studio 12 Software on a Solaris Server for Use by Clients With a Different Architecture

This chapter includes information about the following:

Installing on a Solaris Server for Use by Clients With a Different Architecture

You can install the Sun Studio 12 software on a server running the Solaris OS for use by client systems with a different architecture. You can install the Sun Studio 12 software on a SPARC based server for use by x86 based client systems. Or you can install the Sun Studio 12 software on an x86 based server for use by SPARC based client systems. You can include the system preparation tool in the installed product so that it can be used to install 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. In the directory that contains the batch_installer command, run the command to view the software license agreement:


    ./batch_installer --show-sla
    
  3. Run the batch_installer command to accept the software license agreement, install the Sun Studio 12 software, and copy the prerequisite software to the server:


    ./batch_installer --accept-sla --copy-prerequisites -a client_architecture
    

    To install the software on a SPARC based server for use by x86 based clients, client_architecture is intel-S2. To install the software on an x86 based server for use by SPARC based clients, client_architecture is sparc-S2.

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

  4. On each client system, set the PATH and MANPATH environment variables to access the Sun Studio 12 software and man pages on the server (see Setting Up Access to the Developer Tools and Man Pages in Sun Studio 12 Quick Installation.

  5. On each client system, mount the directory on the server in which you installed the Sun Studio 12 software.


    mount server:filesystem directory
    
  6. Run the system preparation tool on the server to check the client system for the prerequisite software and again, if necessary, to install any missing software.


    prepare_system -C
    prepare_system -s missing_software_name,missing_software_name,...
    

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 -a client_architecture
    

    To install the software on a SPARC based server for use by x86 based clients, client_architecture is intel-S2. To install the software on an x86 based server for use by SPARC based clients, client_architecture is sparc-S2.

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

  4. On the Select Options page:

    1. If the Missing prerequisites field lists any missing prerequisite software, install the missing software by clicking the Update button.

    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.

    3. Click the Advanced options tab.

      Select the Enable cross-install checkbox.

      Select the Copy system prerequisites checkbox.

  5. On the Select Components page, click the checkbox 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. Proceed through the remaining pages to complete the installation on the server.

  7. On each client system, set the PATH and MANPATH to access the Sun Studio 12 software and man pages on the server (see Setting Up Access to the Developer Tools and Man Pages in Sun Studio 12 Quick Installation).

  8. On each client system, mount the directory on the server in which you installed the Sun Studio 12 software.


    mount server:filesystem directory
    
  9. On each client system, run the system preparation tool on the server to check the client system for the prerequisite software and again, if necessary, to install any missing software.


    prepare_system -C
    prepare_system -s missing_software_name,missing_software_name,...
    

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 -a client_architecture -nodisplay
    

    To install the software on a SPARC based server for use by x86 based clients, client_architecture is intel-S2. To install the software on an x86 based server for use by SPARC based clients, client_architecture is sparc-S2.

  3. Read the Software License Agreement and accept it by typing yes.

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

  5. 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.

  6. Select Continue to advanced options, and select Enable cross-install and Copy system prerequisites.

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

  8. Follow the installer instructions to complete the installation.

  9. On each client system, set the PATH and MANPATH environment variables to access the Sun Studio 12 software and man pages on the server (see Setting Up Access to the Developer Tools and Man Pages in Sun Studio 12 Quick Installation).

  10. On each client system, mount the directory on the server in which you installed the Sun Studio 12 software.


    mount server:filesystem directory
    
  11. Run the system preparation tool on the server to check the client system for the prerequisite software and again, if necessary, to install any missing software.


    prepare_system -C
    prepare_system -s missing_software_name,missing_software_name