C H A P T E R  1

Preparing for Installation

This chapter includes information about the following topics:


Software Installation Overview

The following steps outline the general process you follow to install the Sun Studio 8 software, product serial number, and supporting software. See the references provided in each step for specific procedures.

Task

Description

For Instructions

  1. Verify that the system on which you are installing the Sun Studio 8 software meets the minimum requirements for this release.


  2. Determine whether you want to keep your previous version of the Sun ONE Studio or Forte Developer software.




  3. You must install the product serial number during product installation.



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



  5. Verify the Javatrademark 2 Platform, Standard Edition technology installed on your system.

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



Install Sun Studio 8 in the same directory as Sun ONE Studio 8, Compiler Collection. for other previous release, identify a different directory in which to install this Sun Studio 8 software.


The product does not work without a valid serial number.



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




The Sun Studio 8 software supports the Javatrademark 2 Platform, Standard Edition 1.4.2_02 technology

 

See System Requirements.





See Supporting Previous Sun ONE Studio and Forte Developer Releases of Chapter 2.




See Chapter 2 for product installation and serial number installation.


Refer to Choosing Local Display or Remote Display of the Installer for more details.



See Chapter 2 for J2SE installation instructions.

 


After following the instructions in this manual, you are ready to use your Sun Studio 8 software.


System Requirements

This Sun Studio 8 release supports the Solaristrademark operating system (SPARC® Platform Edition) versions 7, 8, and 9; and the Solaris operating system (x86 Platform Edition) versions 7, 8, and 9.



Note - For further disk space requirements and important last minute information about this release, see the release notes for the Sun Studio 8 software on the product web site at http://www.sun.com/software/products/studio/index.html.



TABLE 1-1 lists the system requirements.

TABLE 1-1 System Requirements

Solaris SPARC Platform Edition

Solaris x86 Platform Edition

Operating system

Solaris 7, 8, or 9

Solaris 7, 8, or 9

System

Recommended: Sun Blade 750 MHz
or UltraSPARC III 750 MHz

Minimum: Ultra 60 450 MHz

Recommended: Pentium III 1 GHz

Minimum: Pentium III 500 MHz

Disk Space

1.5 Gbytes

500 Mbytes

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

Monitor

1024 x 768 resolution

Memory

1 Gbyte recommended; 512 Mbytes minimum

Swap Space*

2 Gbytes recommended; 1 Gbytes minimum

J2SE Technology

J2SE 1.4.2_02 technology

Operating System Configurations

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


*Use the swap -s command to check the swap space.


Adding Swap Space

If you want to add swap space, do the following:

1. Become a superuser (root) by typing:


2. Create a file in a selected directory to add swap space by typing:


where number is an amount of swap space, followed by either m for megabyte, k for kilobyte, or b for block. The directory is a directory in which you have permission to add swap space. The swap-file-name is the name of the swap file you are creating.

For example, to create a 16-megabyte swap file named 16mswap in the foo directory, type the following:


See the mkfile(1M) man page for more information.

3. Verify that the file was created by typing:


The new file appears in the directory. For example:


4. Run the swap command to specify the additional swap space by typing:


5. Verify that the extra swap space was added by typing:


The output shows the allocated swap space. For example:



Choosing Local Display or Remote Display of the Installer

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

Preparing to Install Using a Remote Display

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:


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:


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:


If you use the Bourne shell, type:


If you use the Korn shell, type:


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

Preparing to Install Using a Remote Display With an NFS-Mounted Filesystem

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 5 for troubleshooting information.



Note - If you choose to install with this method, all of the files will be owned by nobody on the NFS-mounted filesystem, which makes it difficult to know who owns the directory. Also note that the uninstaller will reside on your local machine, so you must use that local machine to run the uninstaller if you choose to uninstall the product.



Follow the steps below to prepare for installation using a remote display with an NFS-mounted filesystem.

Locating the Product Serial Number

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 page of the installer during installation. You can also generate a 60-day trial serial number during the installation process.

Installing from Electronic Download Files

If you obtained your files through electronic download, you can find complete instructions for downloading and extracting the downloaded files on the download page of the product web site at http://www.sun.com/software/products/studio/index.html. Follow the instructions in the Download Instructions before you proceed with product installation.

Preparing the Source Computer

1. Become a superuser (root) by typing:




Note - In the following examples, the CD-ROM name studio_8_sol_sparc is used. Use the name of your product CD-ROM in place of studio_8_sol_sparc. If you have electronically downloaded the product files, use the download directory name in place of studio_8_sol_sparc. If you are installing from electronically downloaded files, all files must be untarred in the source-machine/download-directory before proceeding with installation.



2. Add the following line to your /etc/dfs/dfstab file in order to share the product image as an NFS filesystem:


3. Verify that your source computer is an NFS server by typing:


If screen output that resembles the following example appears, then nfsd is running:


If you do not see screen output like the preceding example, start nfsd by typing:


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:


4. Ensure that your source computer is exporting your product directory by typing:


Screen output that resembles the following example appears:


Preparing the Display Computer

1. Enable client access to the X server by typing the following at a command line:


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:


3. Create a new directory by typing:


where install-directory is the directory in which you want to install the product.

4. Mount the product files by typing:


5. Go to the directory that you created in Step 3 by typing:


6. Set the display to the monitor you are using.

If you use the C shell, type:


If you use the Bourne shell, type:


If you use the Korn shell, type:



Features Included in This Release

This Sun Studio 8 software release includes the following installation features:

This document includes instructions for using each of the features.