Sun Studio 12 Installation Reference Guide

batch_installer Command

The simplest way to install the Sun Studio 12 software is to use the batch installer, which installs all components of the software.

Syntax

batch_installer [-R altroot] [-d installation_directory] [-a architecture] [-p netbeans | java | patches | all_patches | jdk_patches | all] [--copy-prerequisites] [--show-sla] [--accept-sla] [--no-links] [-no-prodpatch] [--zone=all|this] [-J extra_java_args]

-R altroot

Use this option to specify a root directory other than the default /. Define the full path name of a directory to use as the altroot. All files, including package system information files, are relocated to a directory tree starting in the specified altroot.

-d installation_directory

Specifies the installation directory for the Sun Studio 12 software. Use this option to install in a directory other than the default installation directory, which is /opt on Solaris platforms and /opt/sun on Linux platforms.

-a client_architecture

Allows the batch installer to install the Sun Studio 12 software on a server with a different architecture from the client systems that will use the software. 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.

-p netbeans | java | patches | all_patches | jdk_patches | all

netbeans installs NetBeans 5.5.1 IDE and NetBeans C/C++ Development Pack 5.5.1.

java installs J2SE Development Kit (JDK) 5.0, Update 9.

patches installs the operating system patches required by the Sun Studio 12 software.

all_patches installs both the operating system patches required by, and the operating system patches recommended for, the Sun Studio 12 software.

jdk_patches installs the patches required by the JDK software. On Solaris 10 1/06 platforms, two of these patches are kernel patches. Before using this option, see the http://developers.sun.com/sunstudio/documentation/ss12/release_notes.html for more information.

all checks whether the NetBeans 5.5.1 IDE and NetBeans C/C++ Development Pack 5.5.1, JDK software, and operating system patches required by the Sun Studio 12 software are installed, and installs them if they are missing.

--copy-prerequisites

Copies the prerequisite software to a server for use when running the prepare_system command on client systems that will run the Sun Studio 12 software. The software is copied to the prepare_system_prerequisites directory in the Sun Studio 12 installation directory. For example, if the Sun Studio 12 installation directory is the default /opt directory, the prerequisite software is copied to /opt/prepare_system_prerequisites. The prerequisite software requires 1.2 GB of disk space on SPARC platforms running the Solaris OS, 750 MB of disk space on x86 platforms running the Solaris OS, and 200 MB of disk space on Linux platforms.

--show-sla

Displays the software license agreement.

--accept-sla

Asserts that the person installing the software agrees to the terms of the software license agreement. Software installation will not take place until the software license agreement has been accepted.

--no-links

Lets you choose not to create symbolic links in the /usr/bin directory and /usr/share/man directory to the Sun Studio 12 software and man pages. These links are created by default unless you already have symbolic links in /usr/bin and /usr/share/man to a previous Sun Studio release.

--no-prodpatch

Lets you choose not to install Sun Studio 12 product patches, if any are provided.

--zone all|this

When installing on a Solaris 10 1/06 server with zones, determines whether the Sun Studio 12 software is installed in the all zones (all) or only in the zone in which you are running the batch installer (this). The batch_installer command must be issued in the zone where the software is to be installed.

-J extra_java_args

Lets you pass extra arguments to the JavaTM virtual machine (JVM) used to run the installer


Note –

The terms “Java virtual machine” and JVM mean a virtual machine for the Java platform.