|C H A P T E R 1|
Preparing for Installation
This chapter includes information about the following topics:
The following steps outline the general process you follow to install the Sun Studio 11 software, product serial number, and supporting software. See the references provided in each step for specific procedures.
See System Requirements.
Refer to Choosing Local Display or Remote Display of the Installer for more details.
See Installing the J2SE Platform for J2SE installation instructions, if necessary.
See Choosing an Installation Method for more information.
See Installing the Sun Studio 11 Software for installation instructions.
Sun Studio 11 software software supports the system requirements shown in TABLE 1-1.
Note - For further disk space requirements and important last minute information about this release, see the release notes for the Sun Studio 11 software on Linux platforms on the product web site at http://wwws.sun.com/software/products/studio/index.html.
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 dir is a directory in which you have permission to add swap space. The myswapfile is the name of the swap file you are creating. The number_blocks_needed is an amount of 1024-byte blocks you want to create.
See the dd(1) man page for more information.
3. Verify that the file was created by typing:
The new file appears in the directory.
4. Initialize the new swap area by typing:
See the mkswap(8) man page for more detailed information.
5. Run the swapon command to enable the new swap space for paging and swapping by typing the following:
6. Verify that the extra swap space was added by typing:
The output shows the allocated swap space.
You can display the installer either locally or remotely while you are installing the Sun Studio 11 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:
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 GNU Bourne-Again shell, type:
If you use the Korn shell, type:
Replace display-computer-name with the output of the /bin/hostname command entered on the display computer.
To install the Sun Studio software on an NFS-mounted filesystem, you must run the installer on a supported system regardless of where the NFS partition is mounted. In the following procedure, the server is the machine with the physical disk on which the installed software will reside, and the client is the machine on which you run the installer and which NFS-mounts the filesystem from the server.
Note - The best way to share the product image as an NFS-mounted filesystem is to export it from a supported system. Run the installer on the server and share the directory in which the software is installed. Use the following NFS install procedure only if your NFS server is not a supported platform for the product.
To prepare for installing the Sun Studio software on an NFS-mounted filesystem:
1. On the server machine, share the filesystem with the appropriate options. It is essential that root on the client machine on which the installer will be run have full access to the NFS filesystem:
2. On the client machine, mount the shared filesystem with read/write access:
For example, you might mount the filesystem on installation directory /mnt on client machine foo.
You can then install the Sun Studio product on the server by running the graphical user interface installer, command-line installer, or batch installer on client machine foo. For the graphical user interface installer or the command-line installer, you would select /mnt as the installation directory. For the batch installer, you would specify /mnt as the installation directory using the -d option.
After you have installed the software, any machine that is running a supported version of the Linux operating system can mount the filesystem from the server on which you installed the software, and run the software..
To uninstall Sun Studio software installed on an NFS-mounted filesystem, you must run the uninstaller on the same client machine you used to install the software, and you must mount the filesystem prior to running the uninstaller.
This Sun Studio 11 software software release includes the following installation features:
This document includes instructions for using each of the features.