United States    
COMPAQ
Compaq C

Compaq C

Installation Guide for OpenVMS VAX Systems

Order Number: AA--PXWXF--TE


February 2001

This guide contains instructions for installing Compaq C on a VAX processor system running the OpenVMS operating system.

Revision/Update Information: This revised manual supersedes the DEC C Installation Guide for OpenVMS VAX Systems, (Order No. AA--PXWXE--TE)

Operating System & Version: OpenVMS VAX Version 5.5-2 or higher.
Future maintenance releases may
require higher versions.

Software Version: Compaq C Version 6.4 or higher for OpenVMS VAX Systems

Compaq Computer Corporation
Houston, Texas


First Printing, May 1993
Revised, February 2001

© 2001 Compaq Computer Corporation.

COMPAQ, the Compaq logo, VAX, Alpha, VMS, and OpenVMS are registered in the U.S. Patent and Trademark Office. All other product names mentioned herein may be trademarks of their respective companies.

Confidential computer software. Valid license from Compaq required for possession, use, or copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software Documentation, and Technical Data for Commercial Items are licensed to the U.S. Government under vendor's standard commercial license.

Compaq shall not be liable for technical or editorial errors or omissions contained herein. The information in this document is provided as is without warranty of any kind and is subject to change without notice. The warranties for Compaq products are set forth in the express limited warranty statements accompanying such products. Nothing herein should be construed as constituting an additional warranty.

This document is available on CD-ROM.

This document was prepared using DECdocument, Version V3.3-1e.

Contents


Preface

Purpose of this Guide

This guide describes how to install Compaq C on VAX processors that are running the OpenVMS operating system.

Keep this guide with your distribution kit. You will need it to install maintenance updates or to reinstall Compaq C for any other reason.

You may send comments or suggestions regarding this guide, or any Compaq C document, by electronic mail to the following Internet address:

c_docs@compaq.com

Intended Audience

The audience for this guide is the system manager who installs Compaq C software.

Structure of this Document

This guide is organized as follows:

Manuals in the Compaq C Documentation Set

In addition to this guide, the Compaq C documentation set for OpenVMS VAX systems includes the following books:

Related Manuals

For information on OpenVMS system management, see the following documents in the OpenVMS documentation set:

For help understanding OpenVMS system error messages, see the OpenVMS System Messages and Recovery Procedures Reference Manual or the online HELP/MESSAGE facility.

Conventions

Table 1 lists the conventions used in this guide.

Table 1 Conventions Used in this Guide
Convention Description
UPPERCASE TEXT Uppercase letters indicate the name of a command, a file, a parameter, a procedure, or utility.
$ @SYS$UPDATE:VMSINSTAL Monospace boldface text represents user input in interactive examples in the hardcopy and online versions of this guide.
$ The dollar sign is used to indicate the DCL prompt. This prompt may be different on your system.
Ctrl/x The key combination Ctrl/X indicates that you must press the key labeled Ctrl while you simultaneously press another key, for example, Ctrl/Y or Ctrl/Z.
[Return] In procedures, a key name is shown enclosed to indicate that you press a key on the keyboard.
.
.
.
Vertical ellipsis in an example means that information not directly related to the example has been omitted.
file-spec,... Horizontal ellipsis indicates that additional parameters, values, or information can be entered.
[ ] Square brackets indicate that the enclosed item is optional. (Square brackets are not, however, optional in the syntax of a directory name in a file specification or in the syntax of a substring specification in an assignment statement.)
VMS system All references to VMS system refer to the OpenVMS operating system.


Chapter 1
Preparing for Compaq C Installation

This chapter discusses the preparations and requirements necessary for installing Compaq C for OpenVMS VAX Systems.

This guide applies to Compaq C for OpenVMS VAX Version 6.4 and all subsequent maintenance releases up to the next release of the product that includes an updated installation guide.

Your bill of materials (BOM) and indented bills report (BIL) specify the number and contents of your media. Be sure to verify the contents of your kit with this information. If your kit is damaged or if you find that parts of it are missing, contact your Compaq representative.

Compaq C provides separate online release notes. The release notes contain installation-related notes and a summary of technical changes, known problems, restrictions, and incompatibilities. Reading the release notes before proceeding with the installation is strongly recommended. For information on accessing the online release notes, see Section 2.1.

1.1 Required Operating System Components

Compaq C for OpenVMS VAX Systems, Version 6.4 requires OpenVMS VAX Version 5.5-2 or higher.

The OpenVMS VAX (formerly VAX VMS) operating system comes with a variety of support options, including such features as networking and RMS journaling. To use Compaq C, your system should be running a version of OpenVMS that includes the following:

1.2 Prerequisite Software

If you are installing Compaq C on OpenVMS VAX Version 5.5-2 or Version 6.0, you must first install the Compaq C/C++ Run-Time Components kit. See the Compaq C/C++ Run-Time Components for OpenVMS VAX Reference and Installation Guide .

1.3 Optional Software

See the Software Support Addendum (SSA) that comes with the Software Product Description (SPD) for a complete list of prerequisite and optional software products and their required version numbers.

Note that Compaq C and VAX C can coexist on your system. The CC command is used to invoke either the VAX C or Compaq C compiler. If your system has a VAX C compiler already installed on it, you have the option of specifying which compiler will be invoked by default whenever just the CC command verb is used. To invoke the compiler that is not the default, use the CC command with the appropriate qualifier: /DECC for the Compaq C compiler, or /VAXC for the VAX C compiler. See the Compaq C release notes for more information.

1.4 License Registration

Before you install and run Compaq C Version 6.4 on a newly licensed node or cluster, you must first register a License Product Authorization Key (License PAK) using the License Management Facility (LMF). The License PAK may be shipped along with the kit if you ordered the license and media together; otherwise, it is shipped separately to a location based on your license order.

If you are installing Compaq C as an update on a node or cluster already licensed for this software, you have already completed the License PAK registration requirements.

If you are installing prerequisite or optional software along with Compaq C, review the PAK status and install the PAKs for any prerequisite or optional software before you install Compaq C.

You must register and load your license for Compaq C before you start the installation to run the Installation Verification Procedure (IVP) and use the software.

To register a license under OpenVMS VAX, first log in to the system manager's account, SYSTEM. You then have a choice of two ways to perform the registration:

If you plan to use Compaq C on more than one node in a VAXcluster, you will need to perform a license load on the other nodes after you complete this installation. See Section 3.3.

For complete information on using LMF, see the VMS License Management Utility Manual.

1.5 Installation Procedure Requirements

This section discusses various requirements for installing Compaq C.

Each installation takes approximately 10 to 60 minutes, depending on your type of media and your system configuration.

Installing Compaq C and running the Installation Verification Procedure (IVP) on a standalone VAXstation 4000-60 system takes approximately 15 minutes.

If VMSINSTAL detects any problems during the installation, it notifies you and asks if you want to continue the installation. In some instances, you can type YES to continue. To stop the installation process and correct the situation, type NO or press Return. Then correct the problem and restart the installation.

1.5.1 Privileges and Disk Space

To install Compaq C, you must be logged in to an account that has SETPRV or at least the following privileges:

VMSINSTAL turns off BYPASS privilege at the start of the installation.

The Compaq C requirements for free disk storage space are different during installation and after installation. Table 1-1 lists the storage requirements. You can now install the C documentation in .ps, .txt, and .html formats. The installation default is to not install the documentation, but if you do, note the additional disk space required.

Table 1-1 Disk Space Requirements
Kit Blocks During Installation Blocks After Installation
Compiler only 100,000 80,000
Compiler and documentation 180,000 120,000

To determine the number of free disk blocks on the current system disk, enter the following DCL command:


$ SHOW DEVICE SYS$SYSDEVICE

1.5.2 Process Account Quotas

The account you use to install Compaq C must have sufficient quotas to enable you to perform the installation. Table 1-2 summarizes the process quotas required for the installation account.

Table 1-2 Process Account Quotas for the Installing Account
ASTLM 190
BIOLM 160
DIOLM 160
ENQLM 4000
FILLM 300
PGFLQUOTA 20,480

User account quotas are stored in the file SYSUAF.DAT. Use the OpenVMS Authorize Utility (AUTHORIZE) to verify and change process quotas for the installation account. (Some sites may restrict the use of the OpenVMS Authorize Utility to certain accounts or people.) For example, to change the BIOLM quota for the account-name installation account, you might enter the following command sequence:


$ RUN SYS$SYSTEM:AUTHORIZE
UAF> MODIFY account-name/BIOLM = 160
UAF> SHOW account-name
UAF> EXIT
$ LOGOUT

After the quotas for the installation account have been changed, log out of the installation account and log in again for the new quotas to take effect. You can then proceed with the installation.

For more information on modifying account quotas, see the description of the Authorize Utility in the OpenVMS System Management Subkit.

1.5.3 System Parameters

Installing Compaq C requires certain system parameter settings.

The minimum number of contiguous free global pages and global sections needed for the installation depends on whether
SYS$SYSTEM:DECC$COMPILER.EXE was previously installed as a shared known image. See Table 1-3.

Table 1-3 Global Sections and Pages Required
Previously Installed as Shared? Global Sections Global Pages
No 1 Sufficient number of contiguous free global pages to contain the file SYS$LIBRARY:DCLTABLES.EXE
Yes 4 Approximately 2000 contiguous free global pages plus a sufficient number of contiguous free global pages to contain the file SYS$LIBRARY:DCLTABLES.EXE

These values represent the number of contiguous free global pages and global sections required for the installation, not the total number you need to run your system and other software.

Note

You must ensure that your system has the necessary global page and global section SYSGEN quotas for the installation. Failure to do so could cause the DCL tables to be corrupted in some situations.

1.5.3.1 Calculating the Values for CONTIG_GBLPAGES and FREE_GBLSECTS

To install and run Compaq C, you must have sufficient contiguous free global pages and free global sections. You must first find out how many free global pages and sections you have on your system. Use AUTOGEN if you need to increase the CONTIG_GBLPAGES and FREE_GBLSECTS system parameters.

Enter the following DCL command to determine the number of global pages required by SYS$LIBRARY:DCLTABLES.EXE:


$ DIR/SIZE SYS$LIBRARY:DCLTABLES.EXE

This command returns the size (in blocks) of SYS$LIBRARY:DCLTABLES.EXE. As an approximation, use this figure as the number of global pages needed for the file.

You can use the WRITE command with the F$GETSYI lexical function to find the number of contiguous free global pages and free global sections. The following example shows how to get this information at your terminal (the default for SYS$OUTPUT):


$ WRITE SYS$OUTPUT F$GETSYI("CONTIG_GBLPAGES")
15848
$ WRITE SYS$OUTPUT F$GETSYI("FREE_GBLSECTS")
24

If the value of contiguous free global pages or free global sections is less than the value required (see Section 1.5.3), you must increase the system parameter setting.

Section 1.5.3.2 describes the procedures for increasing these values using AUTOGEN.

1.5.3.2 Changing System Parameter Values with AUTOGEN

If you do not have enough contiguous free global pages or free global sections to install Compaq C, you can do either of the following:

AUTOGEN automatically adjusts values for parameters that are associated with the values you reset manually. To change system parameters with AUTOGEN, edit the following file:


SYS$SYSTEM:MODPARAMS.DAT

Use an editor to access the file. To change a parameter value listed in this file, delete the current value associated with that parameter and enter the new value.

To add a new parameter, add a line to the file that includes both the name of the parameter and its value. For example:


WSMAX = 8096

To modify incremental parameters such as GBLPAGES and GBLSECTIONS, use ADD_GBLPAGES and ADD_GBLSECTIONS, respectively. The following example increases the global page setting by 2000:


ADD_GBLPAGES = 2000

Be aware that when you set the page file quota, you should not use a value that exceeds the amount of page file space available on the system.

After you make all your changes, exit from the editor and execute the AUTOGEN procedure to recalculate your system parameters. Enter the following command to recalculate your system parameters and reboot the system:


$ @SYS$UPDATE:AUTOGEN SAVPARAMS REBOOT

When you specify REBOOT, AUTOGEN performs an automatic system shutdown and then reboots the system. Any users logged on to the system are immediately disconnected during the shutdown. The automatic reboot puts the new parameter values into effect.

The AUTOGEN Utility automatically adjusts some of the SYSGEN parameters based on the consumption of resources since the last reboot. If you do not want to take advantage of this automatic adjustment, include the NOFEEDBACK qualifier on the AUTOGEN command line.

For more information about using AUTOGEN, see the OpenVMS System Management Subkit.

1.5.4 Backing Up Your System Disk

At the beginning of the installation, VMSINSTAL asks if you have backed up your system disk. Doing a system disk backup before installing any software is strongly recommended.

Use the backup procedures that are established at your site. For details on performing a system disk backup, see the section on the Backup Utility in the OpenVMS System Management Subkit.

1.6 Installing and Using Multiple Compiler Versions

Compaq C Version 6.4 provides initial support for installing and using multiple versions of the compiler on the same node.

During installation of Version 6.4, if a Version 6.0 or Version 6.2 of the compiler is already installed, you have the opportunity to preserve that compiler rather than overwrite it. If you choose to preserve the currently installed compiler, you are then given a choice to keep the currently installed compiler as the system default and install the new compiler as an alternate.

By default, the currently installed system compiler is preserved by making it an alternate compiler and installing the new compiler as the system default. Users can make the choice to use an alternate compiler instead of the installed system compiler by running a command procedure that changes the behavior of the cc command for the process that invokes it.

Some details of the following description may change, but the mechanism is essentially as follows.

1.6.1 Displaying and Selecting the Compiler Version

This kit provides two command procedures to display and control which Compaq C compiler is used by a process:


Next Contents
  

1.800.AT.COMPAQ

privacy and legal statement