- Option 1: Download install image of Sun Studio 11 for OpenSolaris, SPARC (builds 72-87) or
x86/x64 (72-current)
This option is an easy installation of the tools, patches, and product
license you need to build OpenSolaris. However, no package information is recorded, so you
cannot apply additional patches to this image.
The download is provided by the Sun Download center. If you have not used
the Sun Download Center before, you will be required to complete a one-time registration to
create a username and password. Once you have a registered,
you can download any software offered via the Sun Download Center.
IMPORTANT NOTE BEFORE YOU INSTALL Sun Studio 11:
To compile ON, the compiler you want to use must be in /opt
(that is, the path to the compilers must be /opt/SUNWspro/bin).
If /opt already contains a previously installed version of Sun Studio software, then to compile ON with a different version, you must:
- Move the previously installed version of Sun Studio to another directory, or remove it
altogether. If the previous version was installed as an "Installable Image" (or tarball
archive), then you can just move it to a new directory, such as
/opt/SunStudio10/ or delete it.
If the product was installed as Solaris packages, you will need to uninstall it.
- Then either install Sun Studio 11 directly into
/opt/ (the default
location),
OR
- Install Sun Studio 11 into the
/opt/SunStudio11/ directory, then create
symbolic links from /opt/SUNWspro to /opt/SunStudio11/SUNWspro and from /opt/netbeans to
/opt/SunStudio11/netbeans.
INSTRUCTIONS FOR INSTALLING SUN STUDIO 11:
Step 1
- Download file into a scratch download directory, such as /var/tmp.
Step 2
- Unpack the archive into the /opt directory with the commands:
# cd /opt
# bzcat
DOWNLOAD-DIRECTORY/sunstudio11-ii-DATE-PLATFORM.tar.bz2 | /bin/tar -xf -
See Setup instructions below on how to set up your environment after installation is
complete.
- Option 2:
Download Product Packages of Sun Studio 11 for OpenSolaris, SPARC or x86/x64
This option will be available at a later date.
After completing one of the above options, you should update your PATH and MANPATH shell
variables to the installation and documentation directories or modify your home directory's
.cshrc file (for C shell) or .profile file (for Bourne or Korn shells) to make these changes
permanent.
If you use csh:
% setenv PATH [installpath]/bin:$PATH
% setenv MANPATH [installpath]/man:$MANPATH
If you use sh (or ksh):
% PATH=[installpath]/bin:$PATH ; export PATH
% MANPATH=[installpath]/man:$MANPATH ; export MANPATH
Replace [installpath] with the pathname where you installed the tools.
To build OpenSolaris, the install path should be the default:
/opt/SUNWspro
Note: If you have moved a previously installed version of
Sun Studio to another directory, you will also need to update your PATH
and MANPATH shell variables for that new directory.
You are now ready to use the Sun Studio tools to build OpenSolaris.
- Sun Studio 11 software includes some third-party technologies governed by the licenses included in the THIRD PARTY LICENSE README subject to the binary code license.