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

Chapter 1 Preparing for Installation

This chapter includes information about the following:

Software Installation Overview

The following steps outline the general process you follow to install the Sun Studio 12 software, product serial number, and supporting software.

Step 

Task 

Description 

For Instructions 

1. 

Verify that the system on which you are installing the Sun Studio 12 software meets the minimum hardware and operating system requirements for this release. 

Using a system that meets the system requirements is recommended for proper performance. 

See System Requirements

2. 

Determine whether you are going to display the installer locally or remotely. 

You can install the Sun Studio software using a remote display or local display. 

See Choosing Local or Remote Display of the Installer

3. 

Choose single-user or client/server installation. 

You can install the Sun Studio 12 software and the required additional software on a single-user system, or you can install the Sun Studio 12 software on a server and the additional software on client systems that will run the Sun Studio 12 software. 

See Installing on a Single-User Systemand Installing on a Server For Use by Clients With the Same Architecture

4. 

Verify that the system on which you are going to run the Sun Studio 12 software has access to the required additional software, and install any needed software. 

The Sun Studio 12 software requires operating system patches, and special versions of operating system libraries. Some components of the software also require the J2SE Development Kit (JDK) 5.0, NetBeans IDE 5.5.1 and NetBeans C/C++ Development Pack 5.5.1.1.  

See Checking For and Installing Software Prerequisites

5. 

Choose an installation method. 

There are four ways to install the Sun Studio software. 

See Choosing an Installation Method

6.  

Install the Sun Studio 12 software. 

Step through the installation information. 

See Chapter 2, Installing the Sun Studio 12 Software

System Requirements

Sun Studio 12 software supports the hardware and operating system requirements shown in Table 1–1.


Note –

For further disk space requirements and important last minute information about this release, see the release notes at http://developers.sun.com/sunstudio/documentation/ss12/release_notesML.html.


Table 1–1 System Requirements

 

Solaris OS on SPARC based systems 

Solaris OS on x86 based systems 

Linux OS on x86 based systems 

Operating system 

Solaris 9, Solaris 10 1/06 and subsequent Solaris 10 OS updates 

SuSE Linux Enterprise Server 9 with Service Pack 3 

RedHat Enterprise Linux 4  

CPU 

SPARC architecture: 

Recommended: Sun Ultra 45 Workstation (two 1.6 GHz UltraSPARC IIIi processors) 

Minimum: Sun Ultra 60 (450 MHz, UltraSPARC II processor) or Sun Blade 2500 (one 1.6 GHz UltraSPARC IIIi processor) for better IDE performance 

x86 architecture (32–bit): 

Minimum: Pentium III 500-MHz Workstation 

x64 architecture (64–bit): 

Recommended: Sun Ultra 40 Workstation (two AMD/Opteron 200/2000 series processors) 

Minimum: Sun Fire v20x Server 

Memory 

Recommended: 1 to 2 GB 

Minimum: 512 MB (more may be needed for working with large projects in the IDE) 

Disk space (Use the df -k command to check your disk space.)

1.5 GB 

1.1 GB 

1 GB 

Swap space 

Recommended: 2 to 4 GB 

Minimum: 1 GB 

To add swap space to your system, see Adding Swap Space

Operating system configuration 

Entire Solaris Software Group Plus OEM Support, Entire Solaris Software Group, or Developer Solaris Software Group (To determine your operating system configuration, you need to verify the installed packages. Specific packages are installed for each configuration. See the Solaris OS installation documentation for more details.) 

Must include the Development/Libraries Package Group. 

Choosing Local or Remote Display of the Installer

You can display the installer either locally or remotely while you are installing the Sun Studio 12 software with the graphical user interface installer or the command-line installer:

ProcedurePreparing for Installation Using a Remote Display

  1. On the display computer, enable client access to the X server by typing the following on the command line:


    xhost + source-computer-name
    

    Replace source-computer-name with the output of the /usr/bin/hostname command entered on the source computer, which is the computer that contains the product DVD or downloaded files.

  2. Log in to the source computer and become a superuser (root).


    rlogin source-computer-name -l rootname
    Password: root-password
    
  3. On the source computer, set the display to the monitor that is attached to the display computer.

    If you use the C shell, type:


    setenv DISPLAY display-computer-name:n.n
    

    If you use the Bourne shell, type:


    DISPLAY=display-computer-name:n.n
    export DISPLAY
    

    If you use the Korn shell, type:


    export DISPLAY=display-computer-name:n.n
    

    Replace display-computer-name with the output of the /usr/bin/hostname entered on the display computer.

Installing to an NFS-Mounted Filesystem

To install the Sun Studio software on an NFS-mounted filesystem, you must run the installer on a supported system regardless of where the NFS partition is mounted. In the following procedure, the server is the machine with the physical disk on which the installed software will reside, and the client is the machine on which you run the installer and which NFS-mounts the filesystem from the server.


Note –

The best way to share the product image as an NFS-mounted filesystem is to export it from a supported system. Run the installer on the server and share the directory in which the software is installed. Use the following NFS install procedure only if your NFS server is not a supported platform for the product.


After mounting the filesystem you can install the Sun Studio product on the server by running the graphical user interface installer, command-line installer, or batch installer on the client machine . You would specify the directory on which you mounted the filesystem as the installation directory for the Sun Studio 12 software.

After you have installed the software, any machine that is running version 9, or 10 1/06 of the Solaris OS can mount the filesystem from the server on which you installed the software, and run the software. Each client machine that runs the software must have the correct prerequisite software installed (see Checking For and Installing Software Prerequisites.

To uninstall Sun Studio software installed on an NFS-mounted filesystem, you must run the uninstaller on the same client machine you used to install the software, and you must mount the filesystem prior to running the uninstaller.

ProcedureTo Prepare for Installing the Sun Studio Software on an NFS-mounted Filesystem

  1. On the server machine, share the filesystem with the appropriate options. It is essential that root on the client machine on which the installer will be run have full access to the NFS filesystem:


    share -F nfs -o root=client-machine,rw filesystem
    
  2. On the client machine, mount the shared filesystem with read/write access:


    mount server-machine:filesystem installation-directory
    

Supporting Previous Sun Studio Releases

If you installed any previous release of Sun Studio software (Sun Studio 11 software or an earlier release) on your system, then you must uninstall it, or install the Sun Studio 12 software in a different directory.

If you installed the English-only release of the Sun Studio 12 software, you can use the installer provided with the multi-language release to update the installed software in two ways:

If you installed the Early Access release of Sun Studio 12 software, you must uninstall it before you can install the final release.

If you installed Sun Studio 10 software or Sun Studio 11 software on a Solaris 10 system, you can install Sun Studio 12 software on that system only if you specify the correct zones option when you run the Sun Studio 12 installer.

Checking For and Installing Software Prerequisites

The system preparation tool lets you check the system on which you are going to run the Sun Studio 12 software for the prerequisite software, and install any missing software. You can run the system preparation tool from the command line before you run the installer or as an option of the batch_installer command. The system preparation tool is run automatically by the graphical user interface installer and the command-line installer. For a complete description of the system preparation tool, see the prepare_system(1) man page or the Sun Studio 12 Installation Reference Guide (English, Japanese, Simplified Chinese).

The Sun Studio 12 software requires the following software, which is included in the product download file and on the product DVD:

If you install the Integrated Development Environment (IDE) component, the following prerequisite software, which is included in the product download file and on the product DVD, is also required:

Choosing an Installation Method

There are four ways to install the Sun Studio 12 software:

Batch installer 

The batch_installer command installs all components of the Sun Studio 12 software with minimal user interaction. You specify the installation directory and root path with the command. Once you have invoked the command, the installation proceeds to completion. For a complete description of the batch_installer command, see the Sun Studio 12 Installation Reference Guide (English, Japanese, Simplified Chinese)

Graphical user interface installer 

The graphical user interface installer is an installation wizard that displays pages for a series of installation steps. On each page, you can quit, go back to the previous step, or go on to the next step. You can choose the installation directory and which components and subcomponents of the Sun Studio 12 software you want to install. For a complete description of the graphical user interface installer, see the Sun Studio 12 Installation Reference Guide (English, Japanese, Simplified Chinese)

Command-line installer  

The command-line installer offers the same series of interactive steps as the graphical user interface installer in text form. For a complete description of the command-line installer, see the Sun Studio 12 Installation Reference Guide (English, Japanese, Simplified Chinese)

Solaris JumpStartTM installer

You can use the JumpStart installer to automate the installation process to install the Sun Studio 12 software on multiple systems. See for an overview of JumpStart installation steps. See the Solaris Installation Guide for complete details of JumpStart installation.