DEC_C_________________________________________ Installation Guide for OpenVMS Alpha Systems Order Number: AA-PUP1D-TE May 1996 This guide contains instructions for installing DEC C on an Alpha processor system running the OpenVMS operating system. Revision/Update Information: This revised manual supersedes the DEC C Installation Guide for OpenVMS Alpha Systems, (Order No. AA-PUP1C-TE) Operating System and Version: OpenVMS Alpha Version 6.1 or higher. Software Version: DEC C for OpenVMS Alpha Systems, Version 5.3 or higher. Digital Equipment Corporation Maynard, Massachusetts __________________________________________________________ First Printing, November 1992 Revised, May 1994 Revised, May 1995 Revised, May 1996 Digital Equipment Corporation makes no representations that the use of its products in the manner described in this publication will not infringe on existing or future patent rights, nor do the descriptions contained in this publication imply the granting of licenses to make, use, or sell equipment or software in accordance with the description. Possession, use, or copying of the software described in this publication is authorized only pursuant to a valid written license from Digital or an authorized sublicensor. © Digital Equipment Corporation 1992, 1994, 1995, 1996. All Rights Reserved. The postpaid Reader's Comments forms at the end of this document request your critical evaluation to assist in preparing future documentation. The following are trademarks of Digital Equipment Corporation: DEC, DECnet, DECset, DECsupport, Digital, OpenVMS, VAX, VAXcluster, VAX DOCUMENT, VMS, VMScluster, and the DIGITAL logo. ZK6139 This document is available on CD-ROM. This document was prepared using VAX DOCUMENT Version 2.1. ________________________________________________________________ Contents Preface.................................................. v 1 Preparing for DEC C for OpenVMS Alpha Installation 1.1 Required Operating System Components......... 1-1 1.2 Optional Software............................ 1-3 1.3 License Registration......................... 1-3 1.4 Installation Procedure Requirements.......... 1-4 1.4.1 Installation Account Privileges and Disk Space.................................... 1-4 1.4.2 System Parameters........................ 1-5 1.4.2.1 Calculating Values for GBLPAGES and GBLSECTIONS............................ 1-6 1.4.2.2 Changing System Parameter Values with AUTOGEN................................ 1-6 1.4.3 VMSINSTAL and Installation Requirements............................. 1-8 1.4.3.1 VMSINSTAL Installation Process Requirements........................... 1-8 1.4.3.2 Modifying Process Quotas............... 1-8 1.4.4 Backing Up Your System Disk.............. 1-9 2 Installing DEC C 2.1 Installation Procedure....................... 2-1 2.2 Error Recovery............................... 2-10 iii 3 After Installing DEC C 3.1 Running the Installation Verification Procedure Separately......................... 3-1 3.2 Editing the System Files..................... 3-2 3.3 OpenVMS Cluster Considerations............... 3-2 3.4 User Account Requirements.................... 3-3 3.4.1 User Privileges.......................... 3-3 3.4.2 User Account Quotas...................... 3-4 3.5 Enhancing DEC C Performance.................. 3-4 3.5.1 Tuning Your System....................... 3-4 3.5.2 Installing DEC C as a Shared Image....... 3-4 3.6 Getting Help and Reporting Problems.......... 3-5 A Sample Installation Tables 1 Conventions Used in this Guide........... vi 1-1 Related Optional Software................ 1-3 1-2 Disk Space Requirements.................. 1-5 iv ________________________________________________________________ Preface Purpose of this Guide This guide describes how to install DEC C on Alpha processors running the OpenVMS operating system. Keep this guide with your distribution kit. You will need it to install maintenance updates or to reinstall DEC C for any other reason. You can send comments or suggestions regarding this guide or any DEC C document by filling out one of the Reader's Comments forms at the back of this guide or by sending electronic mail to the following Internet address: decc_docs@casdoc.enet.dec.com Intended Audience The audience for this guide is the system manager who installs DEC C software. Structure of this Document This guide contains the following chapters and appendix: o Chapter 1 describes how to prepare for DEC C installa- tion. o Chapter 2 describes the procedure to install DEC C. o Chapter 3 describes what to do after installing DEC C. o Appendix A shows a sample installation. v Manuals in the DEC C Documentation Set In addition to this guide, the DEC C for OpenVMS Alpha documentation set includes the following books: o DEC C Language Reference Manual o DEC C User's Guide for OpenVMS Systems o DEC C Run-Time Library Reference Manual for OpenVMS Systems The Read Before Installing DEC C Version 5.n for OpenVMS Alpha Systems letter is provided along with this installation guide on the CD media. Related Manuals For information on OpenVMS system management, see the following documents in the OpenVMS documentation set: o OpenVMS System Manager's Manual o Guide to Maintaining a VMS System o OpenVMS License Management Utility Manual o Guide to OpenVMS Performance Management 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_____________Meaning____________________________ VMS systems Refers to OpenVMS Alpha systems and OpenVMS VAX systems unless otherwise specified. (continued on next page) vi Table_1_(Cont.)_Conventions_Used_in_this_Guide____________ Convention_____________Meaning____________________________ UPPERCASE TEXT Uppercase text indicates a command, the name of a routine, the name of a file, the name of a file protection code, or the abbreviations for a system privilege. $ @SYS$UPDATE:VMSINSTALMonospaced type identifies displayed or typed text, language fprintf function keywords, and the names of auto storage class OpenVMS and DEC C Run-Time Library routines. boldface monospace Boldface monospace text represents text user input in interactive examples. $ The dollar sign is used to indicate the DCL prompt. This prompt may be different on your system. In procedures, a sequence such as indicates that you must hold down the key labeled Ctrl while you press another key or a pointing device button. In procedures, a key name is shown enclosed to indicate that you press a key on a keyboard. . A vertical ellipsis in an example . indicates that information not . directly related to the example has been omitted. file-spec, . . . A horizontal ellipsis indicates that you can enter additional parameters, values, or information. (continued on next page) vii Table_1_(Cont.)_Conventions_Used_in_this_Guide____________ Convention_____________Meaning____________________________ [logical-name] Square brackets indicates 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.)_______ viii 1 ________________________________________________________________ Preparing for DEC C for OpenVMS Alpha Installation This chapter discusses the preparations and requirements necessary for installing DEC C for OpenVMS Alpha Systems. This guide applies to Version 5.3 of DEC C for OpenVMS Alpha Systems 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 Digital representative. DEC C provides online release notes. Digital strongly recommends that you read the release notes before proceeding with the installation. For information on accessing the online release notes, see Section 2.1, step 6. The release notes contain installation-related notes and a summary of technical changes, known problems, restrictions, and incompatibilities. 1.1 Required Operating System Components DEC C Version 5.3 for OpenVMS Alpha Systems requires OpenVMS Alpha Version 6.1 or higher. Future DEC C releases may require higher versions of the OpenVMS operating system, as described in the online release notes or the Read Before Installing or Using DEC C Version 5.n for OpenVMS Alpha Systems letter. Preparing for DEC C for OpenVMS Alpha Installation 1-1 The OpenVMS operating system comes with a variety of support options, or classes. Classes include such features as networking and RMS journaling. To use DEC C, your system should be running a version of OpenVMS Alpha that includes the following classes: 1-2 Preparing for DEC C for OpenVMS Alpha Installation o Programming support o Utilities For a complete list of the required classes, see the DEC C Software Product Description (SPD). 1.2 Optional Software Table 1-1 provides information on optional software that can be used together with DEC C. Table_1-1_Related_Optional_Software_______________________ Product_Name____________________Description_______________ DECset A comprehensive Computer Aided Software Engineering (CASE) environment consisting of the following integrated components: Language- Sensitive Editor (LSE), Source Code Analyzer (SCA), Performance Coverage Analyzer (PCA), Code Management System (CMS), Module Management System (MMS), and DEC Test ________________________________Manager.__________________ 1.3 License Registration Before you install and run DEC C Version 5.3 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 DEC C as an update on a node or cluster already licensed for this software, you have already completed the License PAK registration requirements. Preparing for DEC C for OpenVMS Alpha Installation 1-3 If you are installing prerequisite or optional software along with DEC C, review the License PAK status and install the License PAKs for any prerequisite or optional software before you install DEC C. You must register and load your license for DEC C before you start the installation in order to run the Installation Verification Procedure (IVP) and use the software. To register a license under OpenVMS, first log in to the system manager's account, SYSTEM. You then have a choice of two ways to perform the registration: o Invoke the SYS$UPDATE:VMSLICENSE.COM procedure. When it prompts you for information, respond with data from your License PAK. o At the DCL prompt, enter the LICENSE REGISTER command with the appropriate qualifiers that correspond to the License PAK information. For complete information on using the LMF, see the VMS License Management Utility Manual or the online HELP LICENSE utility. 1.4 Installation Procedure Requirements This section and those that follow discuss various requirements for installing DEC C. The installation takes approximately 5 minutes, depending on your type of media, your system configuration, and the kit components chosen. 1.4.1 Installation Account Privileges and Disk Space To install DEC C, you must be logged in to an account that has the SETPRV privilege or at least the following privileges: o CMKRNL o WORLD o SYSPRV VMSINSTAL turns off BYPASS privilege at the start of the installation. 1-4 Preparing for DEC C for OpenVMS Alpha Installation The DEC C compiler's requirements for free disk storage space are different during installation and after installation. Table 1-2 lists the storage requirements. Table_1-2_Disk_Space_Requirements_________________________ Blocks During Kit____________Installation______Blocks_After_Installation Compiler_______34,000____________22,000___________________ To determine the number of free disk blocks on the current system disk, enter the following DCL command: $ SHOW DEVICE SYS$SYSDEVICE 1.4.2 System Parameters Installing DEC C requires certain system parameter settings. The minimum number of free global pagelets (512-byte subpage unit) and global sections needed for the installa- tion depends on whether SYS$SYSTEM:DECC$COMPILER.EXE was previously installed as a shared known image: o If not previously installed as shared, 1 global section and a sufficient number of contiguous free global pagelets to contain the file SYS$LIBRARY:DCLTABLES.EXE o If previously installed as shared, 2 global sec- tions and approximately 10,000 contiguous free global pagelets plus a sufficient number of con- tiguous free global pagelets to contain the file SYS$LIBRARY:DCLTABLES.EXE These values represent the number of free global pagelets 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 pagelets and global section SYSGEN quotas for Preparing for DEC C for OpenVMS Alpha Installation 1-5 the installation. Failure to do so could cause the DCL tables to become corrupted in some situations. _____________________________________________________ 1.4.2.1 Calculating Values for GBLPAGES and GBLSECTIONS To install and run DEC C, you must have sufficient free global pagelets and global sections. Enter the following DCL command to determine the number of global pagelets 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 pagelets needed for the file. You can use the WRITE command with the F$GETSYI lexical function to find the number of free contiguous global pagelets 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 free global pagelets or global sections is less than the required value (see Section 1.4.2), you must increase the system parameter setting. Section 1.4.2.2 describes the procedures for increasing these values using AUTOGEN. 1.4.2.2 Changing System Parameter Values with AUTOGEN If you do not have enough free global pages or free global sections to install DEC C, you can do either of the following: o Delete an existing known image using the OpenVMS INSTALL utility. o Use the AUTOGEN command procedure to increase the GBLPAGES or GBLSECTIONS system parameters. 1-6 Preparing for DEC C for OpenVMS Alpha Installation 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_. The following example increases the global page setting by 2000: ADD_GBLPAGES = 2000 After you make all your changes, exit from the editor, then 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 GETDATA REBOOT When you specify REBOOT, AUTOGEN does 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. Preparing for DEC C for OpenVMS Alpha Installation 1-7 1.4.3 VMSINSTAL and Installation Requirements When you invoke VMSINSTAL, it checks the following: o Whether you have set your default device and directory to SYS$UPDATE o Whether you are logged in to a privileged account o Whether you have adequate quotas for installation (see Section 1.4.3.1) o Whether DECnet is running o Whether any users are logged in to the system 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.4.3.1 VMSINSTAL Installation Process Requirements VMSINSTAL requires that the installation account have the following minimum quotas: ASTLM = 100 BIOLM = 100 BYTLM = 99,000 DIOLM = 100 ENQLM = 300 FILLM = 300 1.4.3.2 Modifying Process Quotas Use the OpenVMS Authorize Utility to change the process quotas for the installation account in the user authoriza- tion file (UAF). (Some sites may restrict the use of the OpenVMS Authorize Utility to certain accounts or people.) For example, to change the BYTLM quota for the account- name installation account, you might enter the following command sequence: 1-8 Preparing for DEC C for OpenVMS Alpha Installation $ RUN SYS$SYSTEM:AUTHORIZE UAF> MODIFY account-name /BYTLM = 18000 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.4.4 Backing Up Your System Disk At the beginning of the installation, VMSINSTAL asks if you have backed up your system disk. Digital recommends that you do a system disk backup before installing any software. Use the backup procedures 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. Preparing for DEC C for OpenVMS Alpha Installation 1-9 2 ________________________________________________________________ Installing DEC C This chapter explains how to install DEC C: o Section 2.1 contains a step-by-step description of the installation procedure. o Section 2.2 covers error recovery considerations. 2.1 Installation Procedure The DEC C installation procedure consists of a series of questions and informational messages. See Appendix A for a sample installation. To abort the installation procedure at any time, press Ctrl/Y. When you press Ctrl/Y, the installation procedure deletes all files it has created up to that point and exits. You can then start the installation again. Defaults appear in brackets ([]) throughout the installa- tion procedure. 1. Log in to a privileged account and set your default device and directory to SYS$UPDATE, where VMSINSTAL resides. Username: SYSTEM Password: $ SET DEFAULT SYS$UPDATE 2. Invoke VMSINSTAL. @SYS$UPDATE:VMSINSTAL saveset-name device-name OPTIONS N Installing DEC C 2-1 saveset-name The installation name for the component. For DEC C, use the following installation name: CC05n Where n represents the minor (point) release number of DEC C, such as CC053 for Version 5.3. Refer to the label on the DEC C distribution kit or the DEC C BOM or BIL for the maintenance update number of your kit. device-name The name of the device on which you plan to mount the media, or the name of the device:[directory] that contains the save sets. For example, DKA400: is the device name used in examples in this guide. The directory is [CC05n.KIT], where n is the minor release number. To specify the device name on the @VMSINSTAL command line, type: DKA400:[CC05n.KIT] OPTIONS N An optional parameter that indicates you want to see the question on release notes. If you do not include the OPTIONS N parameter, VMSINSTAL does not ask you about the release notes. You should review the release notes before proceeding with the installation in case they contain additional information about the installation. If you are restarting the installation and have already reviewed the release notes, you do not need to specify OPTIONS N. There are several other options you can select when you invoke VMSINSTAL: o Auto_answer (A): Initially creates a file that contains your answers to VMSINSTAL questions and prompts. This option, and the answer file it produces, can save time during a reinstallation (typically after upgrading your system). o Get save set (G): Stores product save sets temporarily on a magnetic tape or in a disk directory. 2-2 Installing DEC C o File log (L): Logs all activity to the terminal during installation. o Alternate root (R): Installs the product to a system root other than that of the running system. See the OpenVMS documentation on software installation in the OpenVMS System Management Subkit for detailed information on these options. If you specify more than one option, separate the options with commas (for example: OPTIONS A,N). The following example invokes VMSINSTAL to install DEC C and shows the system response. This example uses the OPTIONS N release note parameter. $ @SYS$UPDATE:VMSINSTAL CC05n DKA400:[CC05n.KIT] OPTIONS N OpenVMS Alpha Software Product Installation Procedure V6.1 It is dd-mmm-yyyy at hh:mm. Enter a question mark (?) at any time for help. If you do not supply either the product name or the device name, VMSINSTAL prompts you for this information later in the installation procedure. VMSINSTAL does not prompt you for any options, so be sure to include OPTIONS N on the VMSINSTAL command line to access the release notes during the installation. When you invoke VMSINSTAL, it checks for the following requirements: o Whether you logged in to a privileged account. Digital recommends that you install software from the system manager's account with your default device and directory set to SYS$UPDATE. o Whether you have adequate quotas for installation. VMSINSTAL checks for the quota values shown in Section 1.4.3.1. o Whether any users are logged in to the system. If users are logged in, you are asked whether you want to continue the installation. If you want to continue, enter YES. If you want to stop the installation, press Return. Installing DEC C 2-3 3. Confirm system backup. * Are you satisfied with the backup of your system disk [YES]? VMSINSTAL asks if you are satisfied with your system backup. You should always back up your system disk before performing an installation. If you are satisfied with the backup of your system disk, press Return. Otherwise, enter NO to discontinue the installation. After you back up your system disk, you can restart the installation. 4. Mount the media. If you omitted the device name in the VMSINSTAL command line, the following prompt appears: Where will the distribution volumes be mounted: DKA400:[CC05n.KIT] If this prompt appears, enter the name of the distribution (media) device and directory the contains the DEC C kit (save set). For example, if the media is contained on a CD located on unit DKA400:, enter DKA400:[CC05n.KIT] in reply to this question (where n is the minor release number.) Depending on the type of device and whether the device is already mounted, the following prompt may or may not appear: Please mount the first volume of the set on DKA400:. * Are you ready? YES %MOUNT-I-MOUNTED, DEC C mounted on DKA400: If you have not already done so, you should now insert the distribution volume on the device you specified when you invoked VMSINSTAL. The device name appears in the line preceding the question. VMSINSTAL then asks you if you are ready to continue with the installation. If you enter YES to indicate that you are ready, VMSINSTAL displays a message that the media containing DEC C has been mounted on the specified device and that the installation has started. If you entered the wrong device name when you invoked VMSINSTAL and need to restart the installation, enter NO in response to the "Are you ready?" question. To abort the installation for other reasons, press Ctrl/Y. 2-4 Installing DEC C 5. Verify the product being installed The following products will be processed: CC V5.n Beginning installation of CC V5.n at 20:00 %VMSINSTAL-I-RESTORE, Restoring product saveset A... The product name and version are displayed. The save set (A) is restored to a subdirectory of SYS$UPDATE. 6. Select a release notes option. Release notes included with this kit are always copied to SYS$HELP. Additional Release Notes Options: 1. Display release notes 2. Print release notes 3. Both 1 and 2 4. None of the above * Select option [2]: If you specified OPTIONS N when you invoked VMSINSTAL, you are asked to choose one of the four options for reviewing the release notes. o Select option 1 to immediately display the release notes online. You can terminate the display at any time by pressing Ctrl/C. o Select option 2 to print the release notes. You are prompted for the name of the print queue that you want to use: * Queue name [SYS$PRINT]: Either press Return to send the file to the default output print device (SYS$PRINT) or enter another queue name. o Select option 3 to immediately display the release notes online and then be prompted for a queue name for the printed version. o Select option 4 if you have already reviewed the release notes and are restarting the installation. Installing DEC C 2-5 Next, VMSINSTAL displays the following question: * Do you want to continue the installation [N]?: YES %VMSINSTAL-I-RELMOVED, Product's release notes have been moved to SYS$HELP. To continue the installation, enter YES. Otherwise, press Return. In either case, the release notes are copied to the following file in the SYS$HELP directory (where n is the minor version number): SYS$HELP:CC05n.RELEASE_NOTES ________________________Note ________________________ The name of the release notes file installed by VMSINSTAL consists of the current product name and version number. Do not delete release notes for previous versions of DEC C (if any). _____________________________________________________ 7. Respond to license registration queries. DEC C supports the OpenVMS License Management Facility (LMF). The installation procedure displays license information about your product and then asks if you have registered and loaded your Product Authorization Key (PAK) for DEC C. The following is an example of such information: DEC C Version V5.n for OpenVMS Alpha Systems Copyright Digital Equipment Corporation 1993, 1994, 1995, 1996. All rights reserved. Restricted Rights: Use, duplication, or disclosure by the U.S. Government is subject to restrictions as set forth in subparagraph (c) (1) (ii) of DFARS 252.227-7013, or in FAR 52.227-19, or in FAR 52.227-14 Alt. III, as applicable. This software is proprietary to and embodies the confidential technology of Digital Equipment Corporation. Possession, use, or copying of this software and media is authorized only pursuant to a valid written license from Digital or an authorized sublicensor. This kit contains a file summarizing the new features, changes, restrictions, and compatibility issues in this release of DEC C. 2-6 Installing DEC C This file is named CC05n.RELEASE_NOTES and has been placed in SYS$HELP:. This file contains information valuable to DEC C programmers. Please inform your user community of this file's existence. Product: C Producer: DEC Version: 5.3 Release Date: dd-mmm-yyyy * Does this product have an authorization key registered and loaded?: YES If you have not registered and loaded your PAK, you must answer NO to this question. You have to register and load your PAK to run the Installation Verification Procedure (IVP). If you have not done so, you should stop the installation, register and load your PAK, and then restart the installation. 8. Choose the IVP option. The installation procedure asks if you want to run the IVP. The IVP for DEC C checks to be sure that the installation is successful. It is recommended that you run the IVP; answer YES to the following prompt: This kit contains an Installation Verification Procedure (IVP) to verify the correct installation of DEC C. The IVP will be left in: SYS$COMMON:[SYSTEST]DECC$IVP.COM After the installation is complete, you can invoke the command file at any time to verify that DEC C is installed and working correctly. * Do you want to run the IVP after the installation [YES]? After DEC C is installed, you can run the IVP independently to verify that the software is available on your system. You might need to run the IVP after a system failure to make sure that users can access DEC C. 9. Purge files. * Do you want to purge files replaced by this installation [YES]? Installing DEC C 2-7 The directories SYS$HELP, SYS$MESSAGE, SYS$SYSTEM, DECC$LIBRARY, and SYS$TEST may contain previous versions of DEC C files. These files are replaced during the installation with new files, but the old files are not automatically purged. Purging is recommended. In response to the purging prompt, press Return to purge the files or enter NO to keep them. 10.Read informational messages. At this point, the installation procedure displays a number of informational messages that report on the progress of the installation. There are no further questions. If the installation procedure has been successful up to this point, VMSINSTAL moves the new or modified files to their target directories, updates help files, and updates DCL tables, if necessary. If you chose to have files purged, that work is done now. The following messages are displayed: You have answered all of the questions for this installation. The installation will now execute in 1 to 5 minutes without further intervention, depending on your configuration, installation media, and so forth. The C Runtime Library headers and Starlet headers are installed as a Text Library (.TLB). The traditional text form of the headers (.H files) are also provided for reference purposes only) in the directories: SYS$COMMON:[DECC$LIB.REFERENCE.DECC$RTLDEF] and SYS$COMMON:[DECC$LIB.REFERENCE.SYS$STARLET_C]. Please note that the compiler does not search the reference areas SYS$COMMON:[DECC$LIB.REFERENCE.DECC$RTLDEF] and SYS$COMMON:[DECC$LIB.REFERENCE.SYS$STARLET_C] during compilation. Instead headers are taken from the text library. %VMSINSTAL-I-SYSDIR, This product creates system disk directory VMI$ROOT:[SYSTEST.DECC]. Your OpenVMS system will now be modified to include the following new and modified files: 2-8 Installing DEC C [SYSEXE]DECC$COMPILER.EXE [new] [SYSHLP]HELPLIB.HLB [modified] [SYSHLP]CC05n.RELEASE_NOTES [new] [SYSLIB]DCLTABLES.EXE [modified] [SYSLIB]DECC$RTLDEF.TLB [new] [DECC$LIB.REFERENCE.SYS$STARLET_C]*.H [new] [DECC$LIB.REFERENCE.DECC$RTLDEF]*.H [new] [SYSMSG]DECC$COMPILER_MSG.EXE [new] [SYS$STARTUP]DECC$STARTUP.COM [new] [SYSTEST]DECC$IVP.COM [new] [SYSTEST.DECC]DECC$IVP*.* [new] The file SYS$STARTUP:DECC$STARTUP.COM contains commands to be executed at system startup to allow for the best compilation performance. You may want to invoke this command file from your system's site specific startup file. This command file does not have to be invoked for correct operation of DEC C. The end of the installation is indicated by the following message: %VMSINSTAL-I-MOVEFILES, files will now be moved to their target directories... Copyright Digital Equipment Corporation 1993, 1994, 1995, 1996. All rights reserved. Restricted Rights: Use, duplication, or disclosure by the U.S. Government is subject to restrictions as set forth in subparagraph (c) (1) (ii) of DFARS 252.227-7013, or in FAR 52.227-19, or in FAR 52.227-14 Alt. III, as applicable. This software is proprietary to and embodies the confidential technology of Digital Equipment Corporation. Possession, use, or copying of this software and media is authorized only pursuant to a valid written license from Digital or an authorized sublicensor. 11.Observe the IVP. If you chose to run the IVP, VMSINSTAL now invokes the IVP to verify that DEC C was installed successfully: Installing DEC C 2-9 *-------------------------------------------* * Installation Verification Procedure * * for DEC C * *-------------------------------------------* ***** DEC C Installation Verification Procedure SUCCESSFUL ****** 12.End the installation procedure. Installation of CC V5.n completed at hh:mm Adding history entry in VMI$ROOT:[SYSUPD]VMSINSTAL.HISTORY Creating installation data file: VMI$ROOT:[SYSUPD]CC05n.VMI_DATA VMSINSTAL procedure done at hh:mm $ LOGOUT SYSTEM logged out at dd-mmm-yyyy hh:mm:ss.ss When the installation is complete, you can choose to install more products or to log out (as shown here). If you removed any media from the console drive before beginning the installation, you should replace it now. Be aware that VMSINSTAL deletes or changes entries in the process symbol tables during the installation. Therefore, if you are going to continue using the system manager's account and you want to restore these symbols, you should log out and log in again. 2.2 Error Recovery If errors occur during the installation itself or when the Installation Verification Procedure (IVP) is running, VMSINSTAL displays failure messages. If the installation fails, you see the following message: %VMSINSTAL-E-INSFAIL, The installation of DEC C V5.n has failed. If the IVP fails, you see these messages: The DEC C V5.n Installation Verification Procedure failed. %VMSINSTAL-E-IVPFAIL, The IVP for DEC C V5.n has failed. 2-10 Installing DEC C Errors can occur during the installation if any of the following conditions exist: o The operating system version is incorrect. o A prerequisite software version is incorrect. o Quotas necessary for successful installation are insufficient. o System parameter values for successful installation are insufficient. o The OpenVMS help library is currently in use. o The product license has not been registered and loaded. For descriptions of the error messages generated by these conditions, see the OpenVMS documentation on system messages, recovery procedures, and OpenVMS software installation. If you are notified that any of these conditions exist, you should take the appropriate action as described in the message. For information on installation requirements, see Section 1.4. If the installation fails, you must restart the in- stallation procedure from step 2 in Section 2.1. For an explanation of any system messages, see the OpenVMS System Messages and Recovery Procedures Reference Manual or the online HELP/MESSAGE facility. If the installation fails due to an IVP failure, contact a Digital field service representative. Installing DEC C 2-11 3 ________________________________________________________________ After Installing DEC C DEC C is now installed and can be invoked by all users with the CC command. The installation procedure modifies the DCL command table so that the CC command is recognized and processed. However, the previous command table is still in effect for those users who are currently logged in. All logged-in users who want to use the CC command must log out and log in again, or use the following DCL command: $ SET COMMAND /TABLES=SYS$LIBRARY:DCLTABLES You can perform the following system management tasks after DEC C is installed: o Running the Installation Verification Procedure (IVP) separately o Editing the system startup files o Making the product usable on an OpenVMS cluster o Setting user account privileges and quotas o Enhancing performance o Reporting problems The following sections describe these tasks in detail. 3.1 Running the Installation Verification Procedure Separately You usually run the IVP during installation. If you want to run the IVP separately to ensure the integrity of installed files if system problems should occur, execute the following command procedure: $ @SYS$TEST:DECC$IVP.COM After Installing DEC C 3-1 If the IVP fails for any reason, the following message is displayed: DEC C VERSION V5.n TEST FAILED 3.2 Editing the System Files You must edit the system startup file to provide for automatic startup of DEC C when your system is rebooted. Add the command line that starts DEC C to the system startup file, SYS$MANAGER:SYSTARTUP_VMS.COM. DEC C cannot start until after the network has started. You must position this new command line after the line that invokes the network startup command procedure. The following example shows the network startup command line followed by the DEC C startup command line: $ @SYS$MANAGER:STARTNET.COM . . . $ @SYS$STARTUP:DECC$STARTUP.COM 3.3 OpenVMS Cluster Considerations If you want to run DEC C on multiple nodes of an OpenVMS cluster, first check to see that you have the appropriate software license (see Section 1.3). Then perform the following steps after you install DEC C: 1. Enter the LICENSE LOAD command, as described in the OpenVMS License Management Utility Manual, to activate the license on each node in the cluster on which DEC C is to be executed. 2. Log in to the installation node and use the OpenVMS INSTALL Utility to determine whether DECC$COMPILER.EXE is a known image: $ INSTALL INSTALL> LIST SYS$SYSTEM:DECC$COMPILER.EXE 3-2 After Installing DEC C If the output of the preceding LIST command shows DECC$COMPILER.EXE to be a known image, perform all of the following steps. Otherwise, perform all of the following steps except step 4b. 3. Log in to a node on the cluster. 4. Run the OpenVMS INSTALL utility as described in Section 3.5.2, with the following exceptions: a. After invoking the OpenVMS INSTALL utility, enter the following command: INSTALL> REPLACE SYS$LIBRARY:DCLTABLES.EXE This command updates the DCL tables. It should be entered on each node in the cluster, regardless of whether you activated the DEC C license (step 1) on all of the nodes. b. If DECC$COMPILER.EXE was established as a known image using the INSTALL utility, enter the following command: INSTALL> REPLACE SYS$SYSTEM:DECC$COMPILER.EXE This command replaces the INSTALL entry for DECC$COMPILER.EXE. It should be entered only on those nodes on which you activated the DEC C license in step 1. (In most cases, all of the nodes will be licensed.) 5. Repeat steps 3 and 4 for each node of the cluster. 3.4 User Account Requirements Some products cannot be used unless certain privilege and quota requirements are met by user accounts. The following sections describe the privilege and quota requirements needed to work with DEC C. 3.4.1 User Privileges To use DEC C, each account must have TMPMBX and NETMBX privileges. Use the OpenVMS AUTHORIZE utility to determine whether users have the privileges they require. After Installing DEC C 3-3 3.4.2 User Account Quotas To use DEC C, a user account does not need to meet any special quota requirements. However, for users who will be compiling very large programs (many program units compiled together), consider adjusting working set (WSDEF, WSQUOTA, WSEXTENT) and pagefile (PGFLQUOTA) account quotas to improve performance. See Section 1.4.3.2 for a description of how to verify and change account quotas. 3.5 Enhancing DEC C Performance The following sections include information on system tuning and explains how to install DEC C as a shared image. 3.5.1 Tuning Your System After you install DEC C, you might want to adjust your system to enhance performance or lower the use of some system resources. General information about tuning an OpenVMS system is included in the Guide to OpenVMS Performance Management. 3.5.2 Installing DEC C as a Shared Image If you expect DEC C to be used extensively on your system, you can reduce the system overhead and memory requirements by installing it as a shared image. To install DEC C as a shared image on a system that is currently running, use the OpenVMS INSTALL utility. It is recommended that you install DEC C as shared on a system that has been rebooted recently, because the available space in the global page table is less likely to be fragmented. To install DEC C as a shared image: 1. Determine the number of available global pagelets and global sections on your system. You will need to increase them. Section 1.4.2 contains guidelines for showing and setting these parameters. 3-4 After Installing DEC C 2. After you have reset the system parameter values, invoke the OpenVMS INSTALL utility from a privileged account and install DEC C as a shared image by entering the following commands: $ INSTALL INSTALL> ADD SYS$SYSTEM:DECC$COMPILER.EXE/OPEN/SHARED/HEADER_RESIDENT INSTALL> ADD SYS$MESSAGE:DECC$COMPILER_MSG.EXE/OPEN/SHARED/HEADER_RESIDENT INSTALL> EXIT 3. Add the following lines to the appropriate system startup command file so that DEC C is available as a shared image each time the system is started. (If your site has modularized its startup procedures, be sure you add the lines to the correct file.) The default startup command file for OpenVMS is SYS$MANAGER:SYSTARTUP_VMS.COM. $ INSTALL :== $INSTALL/COMMAND_MODE $ INSTALL ADD SYS$SYSTEM:DECC$COMPILER.EXE/OPEN/SHARED/HEADER_RESIDENT ADD SYS$MESSAGE:DECC$COMPILER_MSG.EXE/OPEN/SHARED/HEADER_RESIDENT EXIT 3.6 Getting Help and Reporting Problems If an error occurs while DEC C is in use and you believe the error is caused by a problem with the product, please report it to Digital. If you have a Software Product Services Support Agreement, contact your Customer Support Center (CSC) by telephone or by using the electronic means provided with your support agreement (such as DSNlink). The CSC provides telephone support for high-level advisory and remedial assistance. When you initially contact the CSC, indicate the following: o The name and version number of the operating system you are using o The version number of DEC C you are using o The hardware system you are using (such as a model number) After Installing DEC C 3-5 o A brief description of the problem (one sentence if possible) o How critical the problem is Whether you submit information electronically or contact the appropriate support specialist by telephone, please take the following steps: 1. Describe as accurately as possible the circumstances and state of the system when the problem occurred. Include the description and version number of the DEC C compiler being used. Demonstrate the problem with specific examples. 2. Reduce the problem to as small a size as possible. 3. Remember to include listings of any command files, INCLUDE files, or relevant data files, and so forth. 4. Provide a listing of the program. 5. If the program is longer than 50 lines, submit a copy of it on machine-readable media (diskette or magnetic tape). 6. Report only one problem per report. This will facilitate a faster response. 7. Mail the problem report to Digital. If the problem is related to DEC C documentation, you can report the problem to the CSC (if you have a Software Product Services Support Agreement and the problem is severe); otherwise, send your comments about DEC C documentation to the following Internet address: decc_docs@casdoc.enet.dec.com To obtain information about purchasing a Digital Software Product Services Support Agreement or other support services, please contact your local Digital sales representative. 3-6 After Installing DEC C A ________________________________________________________________ Sample Installation This appendix contains a sample installation of the components on the DEC C kit. This is only a sample. Sometimes the installation procedure is modified in maintenance updates of this product. Because this installation guide is not always revised for maintenance updates, be sure to read the Read Before Installing DEC C for OpenVMS Alpha Systems Version 5.n letter before you install this product. This letter notes any significant changes to the installation sample shown here. This sample was run on a system that had no previous version of DEC C installed. Depending on which layered products you have on your system, you might see additional messages and questions when you perform your installation. The sample installation assumes that DECnet has been shut down, that no users are logged on to your system, and that OPTIONS N is specified to print the release notes. The Installation Verification Procedure (IVP) runs at the end of the installation. $ @sys$update:vmsinstal CC053 DKA400:[CC053.KIT] options n OpenVMS Alpha Software Product Installation Procedure X5F7-SSB It is 10-April-1995 at 14:07. Enter a question mark (?) at any time for help. %VMSINSTAL-W-NOTSYSTEM, You are not logged in to the SYSTEM account. * Do you want to continue anyway [NO]? yes * Are you satisfied with the backup of your system disk [YES]? yes The following products will be processed: Sample Installation A-1 CC V5.3 Beginning installation of CC V5.3 at 14:07 %VMSINSTAL-I-RESTORE, Restoring product save set A ... Release notes included with this kit are always copied to SYS$HELP. Additional Release Notes Options: 1. Display release notes 2. Print release notes 3. Both 1 and 2 4. None of the above * Select option [2]: 2 * Queue name [SYS$PRINT]: * Do you want to continue the installation [NO]? yes %VMSINSTAL-I-RELMOVED, Product's release notes have been moved to SYS$HELP. DEC C Version V5.3 for OpenVMS Alpha Systems Copyright Digital Equipment Corporation 1993, 1994, 1995, 1996. All rights reserved. Restricted Rights: Use, duplication, or disclosure by the U.S. Government is subject to restrictions as set forth in subparagraph (c) (1) (ii) of DFARS 252.227-7013, or in FAR 52.227-19, or in FAR 52.227-14 Alt. III, as applicable. This software is proprietary to and embodies the confidential technology of Digital Equipment Corporation. Possession, use, or copying of this software and media is authorized only pursuant to a valid written license from Digital or an authorized sublicensor. This kit contains a file summarizing the new features, changes, restrictions, and compatibility issues in this release of DEC C. This file is named CC053.RELEASE_NOTES and has been placed in SYS$HELP:. This file contains information valuable to DEC C programmers. Please inform your user community of this file's existence. Product: C Producer: DEC Version: 5.3 Release Date: dd-mmm-yyyy A-2 Sample Installation * Does this product have an authorization key registered and loaded? yes This kit contains an Installation Verification Procedure (IVP) to verify the correct installation of DEC C. The IVP will be left in: SYS$COMMON:[SYSTEST]DECC$IVP.COM After the installation is complete, you can invoke the command file at any time to verify that DEC C is installed and working correctly. * Do you want to run the IVP after the installation [YES]? * Do you want to purge files replaced by this installation [YES]? yes You have answered all of the questions for this installation. The installation will now execute in 1 to 5 minutes without further intervention, depending on your configuration, installation media, and so forth. The C Runtime Library headers and Starlet headers are installed as a Text Library (.TLB). The traditional text form of the headers (.H files) are also provided for reference purposes only) in the directories: SYS$COMMON:[DECC$LIB.REFERENCE.DECC$RTLDEF] and SYS$COMMON:[DECC$LIB.REFERENCE.SYS$STARLET_C]. Please note that the compiler does not search the reference areas SYS$COMMON:[DECC$LIB.REFERENCE.DECC$RTLDEF] and SYS$COMMON:[DECC$LIB.REFERENCE.SYS$STARLET_C] during compilation. Instead headers are taken from the text library. %VMSINSTAL-I-SYSDIR, This product creates system disk directory VMI$ROOT:[SYSTEST.DECC]. Your OpenVMS system will now be modified to include the following new and modified files: Sample Installation A-3 [SYSEXE]DECC$COMPILER.EXE [new] [SYSHLP]HELPLIB.HLB [modified] [SYSHLP]CC053.RELEASE_NOTES [new] [SYSLIB]DCLTABLES.EXE [modified] [SYSLIB]DECC$RTLDEF.TLB [new] [DECC$LIB.REFERENCE.SYS$STARLET_C]*.H [new] [DECC$LIB.REFERENCE.DECC$RTLDEF]*.H [new] [SYSMSG]DECC$COMPILER_MSG.EXE [new] [SYS$STARTUP]DECC$STARTUP.COM [new] [SYSTEST]DECC$IVP.COM [new] [SYSTEST.DECC]DECC$IVP*.* [new] The file SYS$STARTUP:DECC$STARTUP.COM contains commands to be executed at system startup to allow for the best compilation performance. You may want to invoke this command file from your system's site specific startup file. This command file does not have to be invoked for correct operation of DEC C. %VMSINSTAL-I-MOVEFILES, Files will now be moved to their target directories... Copyright Digital Equipment Corporation 1993, 1994, 1995, 1996. All rights reserved. Restricted Rights: Use, duplication, or disclosure by the U.S. Government is subject to restrictions as set forth in subparagraph (c) (1) (ii) of DFARS 252.227-7013, or in FAR 52.227-19, or in FAR 52.227-14 Alt. III, as applicable. This software is proprietary to and embodies the confidential technology of Digital Equipment Corporation. Possession, use, or copying of this software and media is authorized only pursuant to a valid written license from Digital or an authorized sublicensor. *-------------------------------------------* * Installation Verification Procedure * * for DEC C * *-------------------------------------------* ****** DEC C Installation Vertification Procedure SUCCESSFUL ****** *** DEC C Installation Verification Procedure *** ***** Ending at 10-APR-1996 13:05:03.81 ***** Installation of CC V5.3 completed at 13:05 A-4 Sample Installation Adding history entry in VMI$ROOT:[SYSUPD]VMSINSTAL.HISTORY Creating installation data file: VMI$ROOT:[SYSUPD]CC053.VMI_DATA VMSINSTAL procedure done at 13:05 Sample Installation A-5