C H A P T E R 2 |
Installing Sun ONE Studio 8 Software |
This chapter gives you step-by-step instructions for installing your Sun ONE Studio 8, Compiler Collection software and serial number.
Note - Do not use the pkgadd command to install the software. Use the provided installer. |
To support previous Sun ONE Studio Compiler Collection and Forte Developer releases as well as this Sun ONE Studio release on the same computer, select a different installation directory for the new release. For example, if you previously installed development tools in the /opt directory, install the new development tools in a new directory on a filesystem with sufficient disk space.
After installation, modify your PATH and MANPATH environment variables to include the new directory. See Setting Up Access to the Developer Tools and Man Pages for more information about setting the variables to use the new release.
When you upgrade from Try and Buy software to purchased software, you do not need to reinstall the software product. You only need to install your permanent serial number by using the provided installer. Follow the steps in Using the Graphical User Interface Installer or Using the Command-Line Installer, and when you have successfully entered your serial number, you can exit from the installer.
There are two ways to install your permanent serial number:
1. Locate the permanent serial number. See Locating the Product Serial Number.
2. Become a superuser (root) by typing:
% su Password: root-password |
3. Use the snit command to enter your serial number by typing:
% /install-directory/SUNWspro/bin/snit -i serial-number -f /install-directory/SUNWspro/prod/lib/serial.dat |
There are four ways to install the Sun ONE Studio Compiler Collection software:
When you purchase the product, the serial number is listed on a card that is enclosed in the product package. The 26-character number on the card is the number that you enter in the Enter Serial Number pane of the installer during installation. You can also generate a 60-day trial serial number during the installation process.
If you obtained your files through electronic download, you can find complete instructions for downloading and untarring the downloaded files on the product web site at http://wwws.sun.com/software/sundev/suncc/index.html. Follow the instructions on the web site before you proceed with product installation.
You can use the compiler collection software with the IDE in the Sun ONE Studio 4 update 1 software or the IDE in the Forte
Developer 6 update 1 software.
For information on setting the path from the Sun ONE Studio 4 update 1 IDE to the compilers and tools in your Sun ONE Studio 8, Compiler Collection software after installation, see the online help topic "How the IDE Finds the Compilers" in the Solaris Native Languages Support help set in Sun ONE Studio 4 update 1.
If you want to use the compiler collection software with the Forte Developer 6 update 2 IDE, you need to install the Sun ONE Studio 8 to Forte Developer 6 update 2 (FD6u2) Connector during the compiler collection installation. You need to know the installation location for Forte Developer 6 update 2, so you can type that path into the Forte Developer 6 update 2 Connector text box during installation. See Step 8 in Using the Graphical User Interface Installer or Step 11 in Using the Command-Line Installer for more details.
For more information on these IDE options, see the Compiler Collection IDE Options Readme, which is available through the documentation index at /install_directory/SUNWspro/docs/index.html.
You can display the installer either locally or remotely while you are installing the Sun ONE Studio 8 software with the graphical user interface installer or the command-line installer:
To prepare for installation using a remote display, follow these steps:
1. On the display computer, enable client access to the X server by typing the following at a 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 CD-ROM or downloaded files.
2. Log in to the source computer and become a superuser (root) by typing:
% 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.
# setenv DISPLAY display-computer-name:0.0 |
If you use the Bourne shell, type:
# DISPLAY=display-computer-name:0.0 # export DISPLAY |
If you use the Korn shell, type:
# export DISPLAY=display-computer-name:0.0 |
Replace display-computer-name with the output of the /usr/bin/hostname command entered on the display computer.
4. Proceed to Using the Graphical User Interface Installer or Using the Command-Line Installer.
You can install using a remote display if you have write permission on the NFS-mounted filesystem. See What If the Installation Fails on an NFS-Mounted Filesystem? of Chapter 4 for troubleshooting information.
Follow the steps below to prepare for installation using a remote display with an NFS-mounted filesystem.
1. Become a superuser (root) by typing:
% su Password: root-password |
2. Add the following line to your /etc/dfs/dfstab file in order to share the product image as an NFS filesystem:
share -F nfs -o ro /cdrom/studiocc_8_sparc |
3. Verify that your source computer is an NFS server by typing:
# ps -ef | grep nfsd |
If screen output that resembles the following example appears, then nfsd is running:
root 237 1 17 Jun 04 ? 0:00 /usr/lib/nfs/nfsd -a 16 |
If you do not see screen output like the preceding example, start nfsd by typing:
# /etc/init.d/nfs.server start # ps -ef | grep nfsd |
You should see screen output similar to the previous example. If not, contact your system administrator or your Sun authorized service provider.
If nfsd is running, to make the product image available, type:
# /usr/sbin/shareall |
4. Ensure that your source computer is exporting your product directory by typing:
# /usr/sbin/dfshares |
Screen output that resembles the following example appears:
RESOURCE SERVER ACCESS TRANSPORT server-name:product-location server-name - - |
1. Enable client access to the X server by typing the following at a command line:
% /usr/openwin/bin/xhost + source-machine-name |
Replace source-computer-name with the output of the /usr/bin/hostname command entered on the source computer.
2. Log in as superuser (root) by typing:
% su Password: root-password |
3. Create a new directory by typing:
# mkdir /install-directory |
where install-directory is the directory in which you want to install the product.
4. Mount the product files by typing:
# mount source-machine:/cdrom/studiocc_8_sparc /install-directory |
5. Go to the directory that you created in Step 3 by typing:
# cd /install-directory |
6. Set the display to the monitor you are using.
# setenv DISPLAY source-computer-name:0.0 |
If you use the Bourne shell, type:
# DISPLAY=source-computer-name:0.0 # export DISPLAY |
If you use the Korn shell, type:
# export DISPLAY=source-computer-name:0.0 |
These instructions describe how to install the Sun ONE Studio 8, Compiler Collection software and serial number using the product CD-ROM to launch the graphical user interface installer. If you get the product from an electronic download, be sure to follow all instructions on the download web site for downloading the files and invoking the installer.
Note - Do not use the pkgadd command to install the software. Use the provided installer. |
1. Decide if you want to install using a remote display. See Choosing Local Display or Remote Display of the Installer for details.
2. If you are not currently superuser (root), become a superuser by typing:
% su Password: root-password |
3. Insert the CD-ROM in the CD-ROM drive.
If the installer does not start or you are using the Solaris 9 operating environment, the autorun feature might be disabled or unsupported on your system. In this case, use one of the following methods to start the installer:
# /cdrom/studiocc_8_sparc/installer |
The installer begins installing the product and the Welcome pane appears.
4. Click Next in the Welcome pane.
The Initializing pane appears, and when initialization is complete, the Binary Code License Agreement pane appears.
5. In the Binary Code License Agreement pane, click Accept.
If you choose Decline, you cannot continue with the installation.
6. Click Next to proceed to the Component Selection pane.
7. In the Component Selection pane, select the type of installation you want for each product.
8. If you did not choose to install the Sun ONE Studio 8 to Forte Developer 6 update 2 (FD6u2) Connector in Step 7, skip to Step 9. If you did choose to install the connector, then the Sun ONE Studio 8 to Forte Developer 6 update 2 pane appears.
Note - To install the connector, you must already have Forte Developer 6 update 2 software installed. |
a. Type the correct path in the text field for your installed Forte Developer 6 update 2 software.
After the installer checks for adequate disk space, the Ready to Install pane appears.
9. Click Next to proceed to the Select Install Directory pane.
10. Decide whether you want to change the software installation directory from /opt.
See Supporting Previous Sun ONE Studio and Forte Developer Releases if you want to install this new Sun ONE Studio release on a computer that contains previous Sun ONE Studio releases or Forte Developer releases.
11. Click Next when you have entered the installation directory.
If you selected Custom Install for any of the products in the Product Selection pane, a Subcomponent Selection pane is displayed for each of those products. If you did not select Custom Install for any of the products, skip to Step 15.
12. By default, all subcomponents are selected for installation. Deselect any subcomponents you do not want to install by clicking their checkboxes to remove the check marks. Click Next when the pane shows check marks for only the components you want to install.
13. In the Enter Serial Number pane, click the 60-day Trial Serial Number button to generate the 60-day trial serial number or enter your permanent serial number in the text box. See Locating the Product Serial Number for information on finding the serial number.
14. Click Next to install the serial number.
If you are entering a permanent serial number to upgrade from a trial serial number and your product is installed, you can exit the installer.
15. After the installer checks for adequate disk space, the Ready to Install pane appears.
Verify that the disk space shown at the top of the Ready to Install pane is sufficient to install the products you have selected.
16. In the Ready to Install pane, verify that the items you want to install are listed.
The Installing pane appears with a progress indicator. When installation is complete, the Installation Summary pane appears.
17. If you want to view the installation log file for a product, click the Details button for that product in the Installation Summary pane.
18. Click Exit to finish the Sun ONE Studio 8 software installation.
19. Remove the CD-ROM from the CD-ROM drive.
20. (Optional) If you performed the installation using a remote display, on the display computer, disable client access by typing the following:
# xhost - source-computer-name |
21. Exit from superuser privileges on the source computer by typing:
# exit |
22. To set up your access to the Sun ONE Studio Compiler Collection tools and man pages, set your PATH and MANPATH variables by following the steps in Setting Up Access to the Developer Tools and Man Pages.
23. (Optional) If you installed the Sun ONE Studio 8 to Forte Developer 6 update 2 connector, see the Compiler Collection IDE Options Readme accessible through the documentation index page at /install-directory/SUNWspro/docs/index.html for additional steps required for using this connector.
These instructions describe how to install the Sun ONE Studio 8, Compiler Collection software and serial number using the command-line interface.
Note - Do not use the pkgadd command to install the software. Use the provided installer. |
1. Decide if you want to install using a remote display. See Choosing Local Display or Remote Display of the Installer for details.
2. If you are not currently superuser, become a superuser (root) by typing:
% su Password: root-password |
3. Insert the CD-ROM in the CD-ROM drive.
If the GUI installer starts, choose Exit to exit from the installer.
4. From the download directory, start the command-line installation by typing:
# /cdrom/studiocc_8_sparc/installer -nodisplay |
Do not run the installer in the background.
5. The installer welcomes you. Press Enter to continue.
The Binary Software License Agreement text appears.
Note - The Enter key is equivalent to the Return key on some keyboards. Press the Enter key to accept the default selections during installation. |
6. After reading the Binary Software License Agreement, type Accept at the prompt and press Enter to continue.
If you type Decline, you cannot continue with the installation.
7. The installer displays a list of the Sun ONE Studio 8 products with an installation option checked for each product.
To change the installation option for a product, type the number (0-6) that corresponds to the product and proceed to Step 8. To accept the Default installation for all products, press Enter and skip to Step 10.
8. Select the type of installation you want for the product you selected.
The installer displays the updated product list.
9. To select or deselect another product for installation, type its number and return to Step 8. When you are finished selecting products and their types of installation, type 7 to continue and proceed to Step 10.
10. The installer prompts you to specify a location for installation.
11. If you chose to install the Forte Developer 6 update 2 Connector, verify that the installation path of the Forte Developer 6 update 2 software is correct.
Note - To install the connector, you must already have Forte Developer 6 update 2 software installed. |
a. If the path is incorrect, type the correct path at the prompt.
12. If you selected a custom installation for a product in Step 8, select or deselect a component for installation by entering the number that corresponds to the component and press Enter. When finished, type 0 and press Enter.
13. Select Serial Number to generate a Serial Number, or enter your permanent serial number. See Locating the Product Serial Number for information on finding the serial number.
If you are entering a permanent serial number to upgrade from a trial serial number and your product is installed, you can exit the installer.
After verifying the serial number, the installer checks for disk space and warns you if you have insufficient disk space.
A list of products and components is shown for verification.
14. Verify the list of products and components and do one of the following:
If you typed 1 to proceed with installation, a progress indicator appears.
15. When installation is complete, you can view a product's log file by typing the number that corresponds to that product. When you finish viewing the log files, type the number that corresponds to Done.
16. Remove the CD-ROM from the CD-ROM drive.
17. (Optional) If you performed the installation using a remote display, on the display computer, disable client access by typing the following:
# xhost - source-computer-name |
18. Exit from superuser privileges on the source computer by typing:
# exit |
19. To set up your access to the Sun ONE Studio Compiler Collection tools and man page, set your PATH and MANPATH variables by following the steps in Setting Up Access to the Developer Tools and Man Pages.
20. (Optional) If you installed the Sun ONE Studio 8 to Forte Developer 6 update 2 connector, see the Compiler Collection IDE Options Readme accessible through the documentation index page at /install-directory/SUNWspro/docs/index.html for additional steps required for using this connector.
You can install the Sun ONE Studio Compiler Collection software, Sun Performance Library software, or Sun ONE Studio Source Distribution software with the batch installer for a default installation.
Note - Do not use the pkgadd command to install the software. Use the provided installer. |
Follow these instructions for batch installation:
1. Decide if you want to install using a remote display. See Choosing Local Display or Remote Display of the Installer for details.
2. If you are not currently superuser, become a superuser (root) by typing:
% su Password: root-password |
3. Use the following command to run the batch installer:
batch_installer [-s serial number] [-d dirname | -R root-path] [-h] |
Note - Use the command batch_installer_perflib to install the Sun Performance Library software. Use the command batch_installer_src to install the Sun ONE Studio Source Distribution software |
See TABLE 2-1 for the options that are available for the batch_installer command.
The batch_installer command and the options can be used in the scenarios shown in TABLE 2-2.
4. Choose the appropriate installation scenario from TABLE 2-2 to run the batch_installer command. For example, to use the options to generate the 60-day Trial serial number and install in a directory other than the default, type the following:
# /cdrom/studiocc_8_sparc/batch_installer -d /dirname |
The Binary Software License Agreement appears, and the installer checks for adequate disk space. The installer proceeds with installation, and the prompt returns when installation is complete.
5. (Optional) If you performed the installation using a remote display, on the display computer, disable client access by typing the following:
% xhost - source-machine-name |
6. Exit from superuser privileges on the source computer by typing:
# exit |
7. Set your PATH and MANPATH variables. See Setting Up Access to the Developer Tools and Man Pages.
You can use the Solaris JumpStart installer on the Solaris
9 operating environment (SPARC® Platform Edition) and on the Solaris
9 operating environment (x86 Platform Edition) to automate the software installation process to install the Sun ONE Studio Compiler Collection software on multiple systems. An overview of the JumpStart installation steps is listed below. See the Solaris 9 Installation Guide for complete details of JumpStart installation.
Note - In the following instructions, substitute the download directory name for the cdrom_path that is used in the command-line examples. |
1. Verify that you have more than one gigabyte of disk space in both the swap partition and the /opt partition on the source machine.
2. Copy the downloaded file into the $SI_CONFIG_DIR directory.
3. Create a finish script that resides on the source machine. The file must contain the following information:
#! /bin/sh cd $SI_CONFIG_DIR/cdrom_path ./batch_installer -R /a |
Note - The batch_installer -d option does not work in JumpStart installation. |
See Using the Batch Installer for information on the available batch_installer command options.
Refer to the Solaris 9 Installation Guide for further instruction on completing the JumpStart installation process.
Because the Sun ONE Studio Compiler Collection product components and man pages are not installed into the system directories /usr/bin/ and /usr/share/man, you must change your PATH and MANPATH environment variables to enable use of the Sun ONE Studio Compiler Collection software.
Set the PATH and MANPATH variables in your home .cshrc file if you are using the C shell, or your home .profile file if you are using the Bourne shell or Korn shell.
For more information about the PATH and MANPATH environment variables, the SunOS man page csh(1) describes the PATH variable for the C shell, the sh(1) man page describes the PATH variable for the Bourne shell, and the ksh(1) man page describes the PATH variable for the Korn shell. The man(1) man page describes the MANPATH variable.
To use the Sun ONE Studio Compiler Collection commands, your PATH environment variable must contain the path /opt/SUNWspro/bin. To determine whether you need to set your PATH environment variable, follow these steps:
1. Display the current value of the PATH variable by typing:
% echo $PATH |
2. Review the output for a string of paths that contain /opt/SUNWspro/bin.
3. Add the path /opt/SUNWspro/bin/ to your PATH environment variable.
To access Sun ONE Studio Compiler Collection man pages with the man command, your MANPATH environment variable must contain the path /opt/SUNWspro/man. To determine whether you need to set your MANPATH environment variable, follow these steps:
1. Request the dbx(1) man page by typing:
% man dbx |
If the man dbx command cannot find the dbx(1) man page, or if the page that is displayed is not for the version of the software you just installed, you do not have the MANPATH variable set correctly. Set your PATH variable as described in the next step.
3. Add the path /opt/SUNWspro/man/ to your MANPATH environment variable.
The following procedure lets you permanently add the paths for the Sun ONE Studio 8 tools and man pages to the appropriate environment variables so that all Sun ONE Studio 8 components are always available. These commands can also be entered at a shell prompt to temporarily enable that shell only.
1. Add the Sun ONE Studio Compiler Collection software to your PATH and MANPATH variables.
Note - The PATH and MANPATH variables must be set to include Sun ONE Studio Compiler Collection software in each user's environment, which allows each user to use the installed software. |
% echo $MANPATH |
set path=(/opt/SUNWspro/bin $path) |
setenv MANPATH /opt/SUNWspro/man:/usr/share/man |
setenv MANPATH /opt/SUNWspro/man:$MANPATH |
PATH=/opt/SUNWspro/bin${PATH:+:}${PATH} MANPATH=/opt/SUNWspro/man:${MANPATH:=/usr/share/man} |
2. Save the .cshrc file or .profile file that you modified in Step 1.
3. Reinitialize your shell by executing the following command:
source ~/.cshrc |
For the Bourne shell or Korn shell, type:
. ~/.profile |
You can access the documentation for the Sun ONE Studio Compiler Collection software at the following locations:
Note - If your compiler collection software has not been installed in the default /opt directory, ask your system administrator for the equivalent path on your system. |
You are now ready to use your Sun ONE Studio 8, Compiler Collection software.
After you have completed your installation, you can register your product with Sun to receive information on updates and product news. Go to the product registration page at
https://www.sun.com/cgi-bin/software/sundev/prodreg.cgi?scc.
Copyright © 2003, Sun Microsystems, Inc. All rights reserved.