OpenSolaris

  subsites:   Code Reviews   Gates   Issues   Defects   Polls   Test   PKG   Planet   Mail
You are not signed in. Sign in or register.

Sun Studio 11 Compilers and Tools for OpenSolaris Developers!

Starting with ON Build 100 in October 2008, you must use the Sun Studio 12 compiler to build OpenSolaris. See Sun Studio 12 Downloads to get Sun Studio 12 software and the current set of required patches.

The May 2008 version of Sun Studio 11 software and patches on this page builds ON build 72 to ON build 99.

For information on and access to downloads for building ON builds prior to build 72, see: Sun Studio 11 Software -- Previous downloads

Sun Studio Compilers Download

This download provides 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.


    Setup

    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.

Licensing information

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